C++ Irrlicht in windows forms
-
- Posts: 20
- Joined: Wed Dec 15, 2010 10:39 pm
C++ Irrlicht in windows forms
How would I go about rendering Irrlicht in Windows Forms in C++.
-
- Posts: 3
- Joined: Fri Sep 25, 2009 10:39 pm
- Location: UK
Exactly the same as example 14, expect make sure the windows forms application is compiled with /CLR, not the pure, safe or oldSyntax due to managed and none managed code. (Project Options btw).
Also cast the handle like this :
gseEngine = new OpenGSE( (HWND)gseRendererPanel->Handle.ToInt32() );
Done.
Also cast the handle like this :
gseEngine = new OpenGSE( (HWND)gseRendererPanel->Handle.ToInt32() );
Done.
Cobra El Diablo
What on earth are you talking about? You don't have to compile the code as managed in order to get the handle. Also, what is GSE? It's also not necessary at all.Cobra El Diablo wrote:Exactly the same as example 14, expect make sure the windows forms application is compiled with /CLR, not the pure, safe or oldSyntax due to managed and none managed code. (Project Options btw).
Also cast the handle like this :
gseEngine = new OpenGSE( (HWND)gseRendererPanel->Handle.ToInt32() );
Done.