[.net] Use C++ Code in C#

Started by
1 comment, last by ClementLuminy 16 years, 8 months ago
Hello ! i'm beginning to think about making a game editor for a 3d engine, and to do that, i would like to use the .NET framework ( with the Forms and so on ). The problem is that my engine is in C++ not in C# or C++/CLI ... I googled the problem, and people seam to say that there is only 2 solutions: - Use COM interface to define the bridge between C++ and .NET - Use assembly Dll, and import this DLL within the C# project... I'm planning to use the second choice, because using COM interface seams to me a big overhead .. So the question is : Do you have any kind of tutorials which show how to create those Assembly DLL ... Do i have to define a wrapper in C++/CLI ?? How does it work ? i really haven't any idea ... Thanks a lot for your help Clement
Advertisement
Hello there!

I've done this myself, created a C# editor for my C++ game engine, using C++/CLI. I started out with this chapter of Game Engine Toolset Development: Bonus chapter.

Hope that will get you going.

Best regards
----------------------------- Jan-Jaap Severs Grendel Games[ Grendel Games ]
YEAAAHHH !!

Thanks a lot this document was exactly what i was looking for !!

Thanks again ;)

This topic is closed to new replies.

Advertisement