Irrlicht within a Windows Form without using .NET

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
Mloren
Posts: 114
Joined: Mon Aug 07, 2006 2:30 am
Location: Australia
Contact:

Irrlicht within a Windows Form without using .NET

Post by Mloren »

Am I trying to do the impossible?

I have created a Windows Form and im trying to render things using Irrlicht within the form, but i dont want to use the .NET version of Irrlicht.
One reason is i dont want people to have to download the .NET framework to use it.

I read here:
http://irrlicht.sourceforge.net/phpBB2/ ... ndows+form
that you dont have to use the .NERT version of irrlicht but that thread didnt give any advice on how to actualy set up irrlicht within a windows form.

I read through several threads on how to do it in .NET and tried converting it but ran into a lot of problems getting the managed and unmanaged elements to co-operate.

Does anyone have an example of unmanaged Irrlicht running within a WinForm?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Re: Irrlicht within a Windows Form without using .NET

Post by Acki »

Mloren wrote:Does anyone have an example of unmanaged Irrlicht running within a WinForm?
Yes, the Irrlicht sdk has one !!!
Look for the tutorials, there is a demo for this (tutorial "14.Win32Window")...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
CodeDog
Posts: 106
Joined: Sat Oct 07, 2006 8:00 pm
Location: CA. USA
Contact:

Post by CodeDog »

One reason is i dont want people to have to download the .NET framework to use it.
If you are using a WinForm then they MUST have .NET. If you don't want to use .NET then you will need to use Win32 or MFC to create the main window that will contain the control that you are rendering to.
Mloren
Posts: 114
Joined: Mon Aug 07, 2006 2:30 am
Location: Australia
Contact:

Post by Mloren »

That tutorial just tells you how to initialize the device for a window, which wasnt the problem i was having. I was having trouble getting irrlicht to co-operate with the Managed C++.

But I finaly worked it out.
Post Reply