CreateDevice.cs(13)

I'm trying to compile example projects that came with DirectX SDK 9.0 and I get this error:

CreateDevice.cs(13): The type or namespace name 'DirectX' does not exist in the class or namespace 'Microsoft' (are you missing an assembly reference )

The only reference I found to this error was from 2003 and did not help me. I also downloaded the 9.0b development runtime for directx.

Do I need to move files to fix this or is there an update I should download I checked for updates but couldn't find any more that were applicable.

I will supply more info if necessary.


Answer this question

CreateDevice.cs(13)

  • Robert Simpson

    You need VS2003 or VS2005. There are solution files for both versions _2003 and _2005 for each sample.

    Don't forget there are free versions of the express editions available here http://msdn.microsoft.com/vstudio/express/default.aspx so you don't have to wait for anyone.

  • AEC-JD

    1. Make sure you have the .Net framework v1.1 installed (otherwise the managed assemblies will not install)
    2. Make sure you have the latest SDK - October http://msdn.microsoft.com/directx/sdk/ (though December will pop up very soon). You can safely remove all of the otehr SDKs.
    3. Try to run the samples again.

    What versionof Visual Studio are you running

    Look at the references in your project Are they showing an error


  • zdeer1

    ok, in order
    I downloaded and installed .Net framework v1.1
    I downloaded and installed SDK - October
    I uninstalled my older SDK
    I loaded the new tutorial but it errored because my Visual Studio version is too old to open it. What version do I need My college will probably get it for me.

    thanks for the help


  • CreateDevice.cs(13)