Skip to main content
GameDev.net gamedev.net
🔒 Locked

Managed DX support for MC++ missing?

Started by Lionheartadi Jun 25, 2004 at 1:52 PM 3 replies 500+ views
Original Post
Lionheartadi
Lionheartadi
Does anyone know is the managed DX support for MC++ missing from the newest DX SDK realease? I thought of trying to make an MC++ managed DX small demo. Just to try out the managed DX. I tried and tried, but I couldn't initialize managed DX. Firstly the namespace where the managed DX should be isn't there. According to the managed DX SDK there should be a namespace named Microsoft where you should find the managed DX namespace, I found none such thing. Offcourse the sample tutorials in the SDK are for C#, but the documentation also tells that the same classes for DX are supported for every .NET language. I don't know maybe im missing something, but the namespaces are availbe through intellisense even if you are making an unmaged C++ app. I am just wondering... maybe MS has left of MC++ support for MDX. After all it seems that the new SDK release(summer) looks like somekind of a pre-release. Well if someone knows please elighten me :). I don't care much about C# or VB .NET even that I can program in both of them I like to work with C++ and MC++. Well hope someone knows something about this. Thanks for your answer if there are any :D.
Adrian Simionescu
Monder
Monder
Have you tried using the C# sample code? If C# can use the MDX stuff managed C++ will be able to as well.
Arild Fines
Arild Fines
Quote:
Original post by Lionheartadi
According to the managed DX SDK there should be a namespace named Microsoft where you should find the managed DX namespace, I found none such thing.

You need to add a reference to Microsoft.DirectX.dll and Microsoft.DirectX.Direct*.dll. Right click on the References node in your project and do Add Reference. Those DLLs should be on the .NET tab if the MDX part of the DX SDK has been properly installed.

If you are using VS 2002 you won't have a References node in your project. Instead you need to put #using in your code somewhere.


(Paragraphs good.)
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
Lionheartadi
Lionheartadi
Quote:
Original post by Arild Fines
Quote:
Original post by Lionheartadi
According to the managed DX SDK there should be a namespace named Microsoft where you should find the managed DX namespace, I found none such thing.

You need to add a reference to Microsoft.DirectX.dll and Microsoft.DirectX.Direct*.dll. Right click on the References node in your project and do Add Reference. Those DLLs should be on the .NET tab if the MDX part of the DX SDK has been properly installed.

If you are using VS 2002 you won't have a References node in your project. Instead you need to put #using in your code somewhere.


(Paragraphs good.)


Ah... Damn... heh I have been using MC++ for some weeks and every day I learn something new heh... Didn't know you had to link Dlls to get the managed DX running... Allthough it kind a makes sense... since the .NET framework uses only dll.... if I remember correctly... well I haven't seen any includes for major *.h files or *.cpp like for example Win32 api or MFC. heh I didn't thought that there might be a dll to link. I'll try it thanks for the info.
Adrian Simionescu
CpMan
CpMan
#using also works for adding references in MC++

Matt
Visual C++ FE
VSEDebug Visual Studio.NET Add-In. Enhances debugging in ways never thought possible.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.