HELP!!! DirectX Device error.

I been learning off of Beginng C# Game Programming. Have one major issue i cant get passed. I get a compile error

"The Type 'Microsoft.DirectX.Direct3D.Device' Exists in both 'C:\Windows\Microsoft.Net\DirectX for Managed Code\2.0.0.0_x86\Microoft.DirectX.Direct3D.dll' and 'C:\Windows\Microsoft.Net\DirectX for Managed Code\1.0.2902.0\Microoft.DirectX.Direct3D.dll'

I have already unstalled the SDK Apr 2006 version and everything from DirectX.

Using:
VC#.Net 2005 exp Ed.
DirectX Apr 2006 SDK.



Answer this question

HELP!!! DirectX Device error.

  • Panks2905

    You need to remove all the DirectX library references from your project file and manually re-add them. The code for my book should work just fine with the latest 1.1 libraries. It will not work with the 2.0 libraries.



  • kim6579

    http://www.thezbuffer.com/articles/385.aspx

    (If I had $10 for every time I've posted this one in the last 3 weeks....)



  • HELP!!! DirectX Device error.