using Microsoft.Samples.DirectX.UtilityToolkit;

I trying to write an application in Visual C# with the DirectX SDK. The application should use various controls so I want to use the namespace:

using Microsoft.Samples.DirectX.UtilityToolkit;

when compiling i get the the error that an assembly or reference is missing. However I can not add it as a reference because I can not find it. Shouldn't there be a dll with the name Microsoft.Samples.DirectX.UtilityToolkit.


What shall I do te be able to use the namespace



Answer this question

using Microsoft.Samples.DirectX.UtilityToolkit;

  • Omar.Rojas

    Roland,

    you need to add references to the managed dx dlls from the sdk. basically, these are

  • Microsoft.DirectX.dll
  • Microsoft.DirectX.Direct3D.dll
  • Microsoft.DirectX.Direct3DX.dll

  • you will also need to allow unsafe code in you project.

    WM_HOPETHISHELPS
    thomas woelfer
    http://www.die.de/blog


  • Cole57

    Thanks for your reply.

    I already figured out that I needed to use the dll:s you mentioned. Besides it was already nessecary to use the C# source files in the Common Directory. This is necessary to use the UtilityToolkit whis handles DirectX buttons etc.

    Thanks for your help


  • nume

    With the latest Managed DirectX SDK, you can use the empty project that you would have for VS 2003 in VS 2005, just make sure you use the new solution file.

    On the other hand I have created a template file for the Empty Project that you copy into your templates directory, this will allow you just to select it when you start a ne solution.

    Custom Template for Managed DirectX Sample Framework Project

    I have also created a Compiled Help file that has the documentation for the sample framework.

    And last of all, I am thinking on working on a project that will hopefully expand on the Sample framework, if you have any ideas please post in the forums here.

    Mykre
    www.ircomm.net
    Managed DirectX and Game Programming Resources.

  • using Microsoft.Samples.DirectX.UtilityToolkit;