Can Non-Managed DirectX engine be used in C# or Managed C++ app?

knaack

Newcomer
Joined
Sep 19, 2003
Messages
2
I have a NON-Managed DirectX 3-D engine that I want to create some tools for. The tools must have one or more windows to render my 3-D scenes into plus lots of GUI functionality.

I have a win32 app in C++ that displays a 3-D scene using DirectX (graphics code also in C++) so I know I can go that route, but it's tedious to do.

Is it possible (and recommendable) to create the app using C# or Managed C++ and hook in the non-Managed DirectX engine?

Or am I better off sticking with the Win32 framework?

thanks,
Rob
 
You can partially port it using Managed C++ but you may be better off keeping the program in Unmanaged because it may not be worth the overhaul and if you write another engine do it in C# instead.

You should go for Managed but if it's too diifficult you can just leave it how it is. Managed Programs can interact with DLL Exports and COM libraries too, so if the engine provides these you can implement like that before moving to a fully managed engine eventually
 
Back
Top