【问题标题】:Is RGBRast included with .NET 3.5 SP1?.NET 3.5 SP1 是否包含 RGBRast?
【发布时间】:2010-04-02 19:37:14
【问题描述】:

我需要将 RGBRast 软件渲染器用于我正在开发的 DirectX 应用程序。目前我只是将 DLL 包含在我的安装中。

我已经阅读了一些地方,它也包含在 .NET 3.5 SP1 中。这是真的?如果有,DLL 位于何处?


此可再发行组件可从以下网址下载:

http://www.microsoft.com/downloads/details.aspx?familyid=57d03491-6c49-4429-bff7-130408b5f410

【问题讨论】:

    标签: .net directx


    【解决方案1】:

    是的,从 3.0 开始包含,毫无疑问支持 WPF。证据is here。复制到 c:\windows\system32\rgb9rast.dll

    【讨论】:

    • 对我来说它被命名为 rgb9rast_2.dll。我想知道是否有一种可靠的方法可以在不指定文件名的情况下加载这个 DLL?
    • 更好的参考可能是blogs.msdn.com/astebner/archive/2008/07/13/8729636.aspx。他指的是%WINDIR%\system32\rgb9rast_2.dll
    • 我已经使用以下方法加载了这个软件光栅化器:IntPtr rasterizer = LoadLibrary("rgb9rast_2.dll");
    • 在未打补丁的 Windows 7 系统上,该文件名为 rgb9rast.dll。
    【解决方案2】:
        // Perform a LoadLibrary of the Microsoft Software Rasterizer...
    HMODULE hRast = LoadLibrary(szPath + CString("\\RGB9Rast.dll") );
    if(!hRast) {
        hRast = LoadLibrary(szPath + CString("\\RGB9Rast_1.dll") );
        if(!hRast) {
            hRast = LoadLibrary(szPath + CString("\\RGB9Rast_2.dll") );
            if(!hRast) 
                return FALSE;
        }
    }
    

    【讨论】:

    猜你喜欢
    • 2015-10-25
    • 2011-05-06
    • 1970-01-01
    • 2010-09-16
    • 1970-01-01
    • 2010-11-23
    • 1970-01-01
    • 2011-02-17
    • 1970-01-01
    相关资源
    最近更新 更多