Launching an Irrlicht program with parameters

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
Didine
Posts: 19
Joined: Wed Aug 24, 2005 1:22 pm
Location: France
Contact:

Launching an Irrlicht program with parameters

Post by Didine »

How to execute an irrlicht program witch have received an external parameter like a file name. For example, MyMenu test.bsp ?
I'm using the system function but after, I don't know how to do in the target app.

Many thx
cpprules
Posts: 148
Joined: Wed Jul 27, 2005 8:37 pm
Location: on the Pedastal

Post by cpprules »

WinMain() or main() takes external paramters example:

int WINAPI WinMain(HINSTANCE hinstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
Last edited by cpprules on Mon Sep 12, 2005 1:06 pm, edited 1 time in total.
CRPG, FRPG, Oblivion Fan
Hater of Counter Strike (i hate it so much damn it)
Fred

Post by Fred »

Search Google - all the information you need is out there.
Didine
Posts: 19
Joined: Wed Aug 24, 2005 1:22 pm
Location: France
Contact:

Post by Didine »

Sorry, I gave a wrong description of my problem.

I'm using the folowing code with a default parameter for my test :

Code: Select all

int main(char *MyFile="test.bsp")
...
  IAnimatedMesh* mesh = smgr->getMesh(MyFile);
Of course, the program is crashing, but I don't know how to do that.

Thx
:(
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post by Dances »

try using something other than char like stringw or wchar_t
Post Reply