Posted by: jasper22 | September 7, 2009

DirectX 9 SDK with .NET Forms (C++)

    When searching the internet, it becomes painfully clear that finding a decent tutorial to implement DirectX 9.0c into .NET Forms is nearly impossible. If you do manage to find one, chances are it is meant for C#.

If you are wondering why a programmer would want to do this, here is my personal response:

Compared to the Win32 API, .NET Forms are far more simple to include in a project and far easier to manage. The only setback is that .NET Forms were designed for C# and not C++. However, with a few simple lines of code, you can change your program so that it will take advantage of C# libraries (.NET Forms in particular). This is ideal if you are trying to construct your own level editor without all the mess generated by Win32.

If you are reading this tutorial, then I expect you know how to do the following:

    * Have an intermediate knowledge of C++.
    * Know how to use DirectX9 SDK, if not: www.directxtutorial.com.
    * I also assume you have your own copy of Visual Studio. (Note: I use the Visual C++ Express Edition from Microsoft; if you are using Visual Studio 2005, there might be minor variations.)
    * Furthermore, I assume you have the DirectX SDK installed in your computer.

Read more: Codeproject


Leave a response

Your response:

Categories