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
Launching an Irrlicht program with parameters
WinMain() or main() takes external paramters example:
int WINAPI WinMain(HINSTANCE hinstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
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)
Hater of Counter Strike (i hate it so much damn it)
Sorry, I gave a wrong description of my problem.
I'm using the folowing code with a default parameter for my test :
Of course, the program is crashing, but I don't know how to do that.
Thx
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);
Thx