Page 1 of 1

Launch irrlicht like a win32 process

Posted: Mon Aug 15, 2005 2:09 am
by Ishtm
Hello I am trying to launch an aplication based in irrlicht from other app calling CreateProcess function, after 2 runs the app crash. My question is: if Irrlicht is able to be launched in the context of other programs.

Posted: Mon Aug 15, 2005 2:39 am
by luckymutt
Iam trying to do something similar, and with a bit of a struggle.
Have you checked out the Win32Window example?
The Irrlicht device can be run in a Windows window, but I am trying to include that into a larger app and gets called up from my Windows GUI.

As far as I can tell so far, the Irrlicht app would need to be declared in its own header with something like:

Code: Select all

	public ref class yournamehere : public System::Windows::Forms::Form
	{
	public: etc
anad then called into action in your main with something like:
(gcnew (yournamehere))->ShowDialog();

Don't quote me on the syntax though.
I am using the forms designer to put together my GUI, so what I'm gonna try is to add my own source files into it for my Irrlicht stuff.

Post whatever else you might find out.

Posted: Mon Aug 15, 2005 3:55 pm
by Ishtm
As far I know Irrlicht can be displayed in any windows control wich can be created with CreateWindow or CreateWindowEx, the hWnd given we pass to
SIrrlichtCreationParameters.WindowId and it works fine, in .NET i dont know.
May be passing the handle of control derived of System.Form to SIrrlichtCreationParameters works too :)