Click here to Skip to main content
15,891,976 members
Home / Discussions / C#
   

C#

 
Generaldisable network Pin
Ahmed Mazrou311-Aug-03 6:32
Ahmed Mazrou311-Aug-03 6:32 
Generalcast to unknown type in reflection Pin
Ista11-Aug-03 6:30
Ista11-Aug-03 6:30 
GeneralRe: cast to unknown type in reflection Pin
Furty11-Aug-03 19:07
Furty11-Aug-03 19:07 
QuestionDoes anyone know how to solve this Tree View issue??? Pin
trabiman11-Aug-03 4:30
trabiman11-Aug-03 4:30 
AnswerRe: Does anyone know how to solve this Tree View issue??? Pin
Heath Stewart11-Aug-03 4:53
protectorHeath Stewart11-Aug-03 4:53 
GeneralDirectX SDK question Pin
Radoslav Bielik11-Aug-03 3:09
Radoslav Bielik11-Aug-03 3:09 
GeneralRe: DirectX SDK - update Pin
Radoslav Bielik11-Aug-03 3:37
Radoslav Bielik11-Aug-03 3:37 
GeneralRe: DirectX SDK - update Pin
Heath Stewart11-Aug-03 5:17
protectorHeath Stewart11-Aug-03 5:17 
There is one important thing you should understand: what VS.NET sees (in the Add References dialog) and what's in the Global Assembly Cache (GAC) are different. The GAC is what's important here. You should open the directory (using Start->Run) %WINDIR%\Assembly and see if you see the DirectX assemblies in there. If they aren't, there's your problem.

See, the CLR searches for assemblies differently that Win32. It checks the assembly bindings in the config file, then the private path (usually the app directory or a "bin" subdirectory), and then it searches the GAC. You'll notice that the DirectX assemblies are neither referenced in the config file nor are they in the private path (and I don't mean the PATH env var, which doesn't matter to the CLR). If they aren't in the GAC, that's why they're not found.

What VS.NET is seeing is actually assemblies not in the GAC, but in folders referenced in the registry, namely HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework. I don't know why they do it that way, but they do. So, just because you see it in VS.NET doesn't mean that the sample can find them. They have to be in the GAC for that.

So, you need to make sure that the GAC contains those assemblies. If not, I'm surprised that running the developer runtime setup didn't do it. Check on the DirectX web site because I know that there were several patch-like updates to DirectX 9.0 (the first release) that fixed problems with both A and B. A straight B install might not install the managed assemblies. The web site should be able to help.

Good luck!

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: DirectX SDK - update Pin
Radoslav Bielik11-Aug-03 8:39
Radoslav Bielik11-Aug-03 8:39 
GeneralGetting the active window handle Pin
CyberKewl11-Aug-03 2:31
CyberKewl11-Aug-03 2:31 
GeneralRe: Getting the active window handle Pin
Heath Stewart11-Aug-03 4:16
protectorHeath Stewart11-Aug-03 4:16 
GeneralRe: Getting the active window handle Pin
CyberKewl11-Aug-03 4:57
CyberKewl11-Aug-03 4:57 
GeneralStreaming .wav file with CSound Pin
björka11-Aug-03 2:11
björka11-Aug-03 2:11 
Generalgantt chart Pin
Member 52474011-Aug-03 2:06
Member 52474011-Aug-03 2:06 
GeneralRe: gantt chart Pin
Heath Stewart11-Aug-03 2:23
protectorHeath Stewart11-Aug-03 2:23 
GeneralRe: gantt chart Pin
Member 52474011-Aug-03 2:45
Member 52474011-Aug-03 2:45 
GeneralRe: gantt chart Pin
Heath Stewart11-Aug-03 4:05
protectorHeath Stewart11-Aug-03 4:05 
Generaldestructor Vs Finalize Pin
devvvy11-Aug-03 1:45
devvvy11-Aug-03 1:45 
GeneralRe: destructor Vs Finalize Pin
Nish Nishant11-Aug-03 1:51
sitebuilderNish Nishant11-Aug-03 1:51 
GeneralRe: destructor Vs Finalize Pin
devvvy11-Aug-03 1:57
devvvy11-Aug-03 1:57 
GeneralRe: destructor Vs Finalize Pin
Nish Nishant11-Aug-03 2:06
sitebuilderNish Nishant11-Aug-03 2:06 
GeneralWhat can you do in destructor with .NET? Pin
devvvy11-Aug-03 2:52
devvvy11-Aug-03 2:52 
GeneralRe: What can you do in destructor with .NET? Pin
James T. Johnson11-Aug-03 10:50
James T. Johnson11-Aug-03 10:50 
GeneralRe: What can you do in destructor with .NET? Pin
Nish Nishant11-Aug-03 15:58
sitebuilderNish Nishant11-Aug-03 15:58 
GeneralUsing a .lib in c# Pin
Big Trev11-Aug-03 1:32
Big Trev11-Aug-03 1:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.