tags:

views:

45

answers:

2

I need to use the RGBRast software renderer for a DirectX application I'm developing. Currently I'm just including the DLL with my install.

I have read a few places that it is also included with .NET 3.5 SP1. Is this true? If so, where is the DLL located?


This redistributable component can be downloaded from:

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

+1  A: 

Yes, included since 3.0, no doubt to support WPF. Evidence is here. Copied to c:\windows\system32\rgb9rast.dll

Hans Passant
For me it was named rgb9rast_2.dll. I wonder if there's a reliable way to load this DLL without specifying its filename?
emddudley
A better reference might be http://blogs.msdn.com/astebner/archive/2008/07/13/8729636.aspx. He refers to %WINDIR%\system32\rgb9rast_2.dll
emddudley
I have loaded this software rasterizer using: IntPtr rasterizer = LoadLibrary("rgb9rast_2.dll");
emddudley
On an unpatched Windows 7 system the file was named rgb9rast.dll.
emddudley
+1  A: 
    // 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;
    }
}
Where did you obtain this code snippet?
emddudley