2010-04-02 7 views
1

Je dois utiliser le logiciel de rendu RGBRast pour une application DirectX que je développe. Actuellement, je ne fais qu'inclure la DLL avec mon installation.RGBRast est-il inclus avec .NET 3.5 SP1?

J'ai lu quelques endroits qu'il est également inclus avec .NET 3.5 SP1. Est-ce vrai? Si oui, où se trouve la DLL?


Ce composant redistribuable peut être téléchargé à partir de:

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

Répondre

1

Oui, inclus depuis 3.0, sans doute pour soutenir WPF. Preuve is here. Copié dans c: \ windows \ system32 \ rgb9rast.dll

+0

Pour moi, il a été nommé rgb9rast_2.dll. Je me demande s'il existe un moyen fiable de charger cette DLL sans spécifier son nom de fichier? –

+0

Une meilleure référence pourrait être http://blogs.msdn.com/astebner/archive/2008/07/13/8729636.aspx. Il se réfère à% WINDIR% \ system32 \ rgb9rast_2.dll –

+0

J'ai chargé ce logiciel de rasterizer en utilisant: IntPtr rasterizer = LoadLibrary ("rgb9rast_2.dll"); –

1
// 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; 
    } 
} 
+0

Où avez-vous obtenu cet extrait de code? –

+0

Il est similaire au code trouvé ici: http://svn.alleg.net/svn/Allegiance/branch/FAZR6/src/engine/D3DDevice9.cpp –