C++ Irrlicht in windows forms

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
saltytaco1234
Posts: 20
Joined: Wed Dec 15, 2010 10:39 pm

C++ Irrlicht in windows forms

Post by saltytaco1234 »

How would I go about rendering Irrlicht in Windows Forms in C++.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Just as shown in example 14.
Cobra El Diablo
Posts: 3
Joined: Fri Sep 25, 2009 10:39 pm
Location: UK

Post by Cobra El Diablo »

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.
Cobra El Diablo
slavik262
Posts: 753
Joined: Sun Nov 22, 2009 9:25 pm
Location: Wisconsin, USA

Post by slavik262 »

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.
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.
Post Reply