WPF and C++

Okay, so I am looking at starting a new side project. Its a game that I am going to be making from scratch including the game engine. I am very fluent in C++ and have already made one rudimentary engine using C++, DirectX and various other libraries. Recently I starting dabbling with WPF and can already start to see the power it contains for laying out an effective and easy to use GUI so I would like to use it to create the GUI for tools such as my level editor. However, I would like much of the backend code to remain native C++ for efficiency and speed reasons. Is there a way to combine the two and get the best of both worlds? Any suggestions or links to references would be greatly appreciated.
closed account (z05DSL3A)
Writing the WPF code in C# and creating an interop layer written in C++/CLI to hook this to the native C++ code.


Edit:
An older (2009) MSDN article:
Best Practices For Managed And Native Code Interoperability
http://msdn.microsoft.com/en-us/magazine/dd315414.aspx
Last edited on
Thanks! Definitely gonna give this a read.
Topic archived. No new replies allowed.