I posted a while back that I couldn't get code using DirectX in VC# because of a missing assembly reference blah blah blah. So I added the reference manually by browsing to the folder that contains the managed DirectX stuff and it now compiles fine. (I had to manually browse to the WINNT/Microsoft.NET/Managed DirectX/... folder for this as the Microsoft.DirectX stuff did not appear in the list that the add reference dialog gives you, which seemed a bit odd to me).
However, it does not run. The program crashes when trying to create the device with the following:
An unhandled exception of type 'Microsoft.DirectX.Direct3D.InvalidCallException' occurred in microsoft.directx.direct3d.dll
As far as I can figure out the problem is that the dlls that I included as the assembly reference thing (v9.02.2904) do not match those that it says it loads and are in the WINNT/assembly/gac/ folder (v1.0.2902.0).
I went ahead and did the obvious thing. First I uninstalled the dx9c sdk summer 2004 update, then the original dx9 sdk. Then I installed the summer update again and then (when it still did not work) I installed just the dx9c runtimes again as I thought that might be the problem.
Funny thing is that the dx9 sample executables for managed dx run fine although I can't even try to compile them since they are VS2003 files and I have VS2002. So whatever runtimes the C# DirectX9 stuff needs they seem to be there at least.
That was a rather lengthy explanation but I wanted to make sure that I didn't just get a bunch of posts saying "reinstall the SDK" as I have tried that. So, anybody have a clue wtf I might be doing wrong?
However, it does not run. The program crashes when trying to create the device with the following:
An unhandled exception of type 'Microsoft.DirectX.Direct3D.InvalidCallException' occurred in microsoft.directx.direct3d.dll
As far as I can figure out the problem is that the dlls that I included as the assembly reference thing (v9.02.2904) do not match those that it says it loads and are in the WINNT/assembly/gac/ folder (v1.0.2902.0).
I went ahead and did the obvious thing. First I uninstalled the dx9c sdk summer 2004 update, then the original dx9 sdk. Then I installed the summer update again and then (when it still did not work) I installed just the dx9c runtimes again as I thought that might be the problem.
Funny thing is that the dx9 sample executables for managed dx run fine although I can't even try to compile them since they are VS2003 files and I have VS2002. So whatever runtimes the C# DirectX9 stuff needs they seem to be there at least.
That was a rather lengthy explanation but I wanted to make sure that I didn't just get a bunch of posts saying "reinstall the SDK" as I have tried that. So, anybody have a clue wtf I might be doing wrong?