Invokin anothr process from my app
-
Hi, My project uses a telephony hardware which comes with its own initializing software. Each time i run my app, i've to run the said s/w for initializing the h/w. So, i think it'll be better if my app itself runs it on startup. I've lookd up the MSDN and ended up on Createprocess(:confused:). I burnd my head a lot, but its not workin, probably, the parameters i passd r incorrect.. plz help me out. thanks, -- ano -- modified at 0:38 Friday 25th November, 2005
-
Hi, My project uses a telephony hardware which comes with its own initializing software. Each time i run my app, i've to run the said s/w for initializing the h/w. So, i think it'll be better if my app itself runs it on startup. I've lookd up the MSDN and ended up on Createprocess(:confused:). I burnd my head a lot, but its not workin, probably, the parameters i passd r incorrect.. plz help me out. thanks, -- ano -- modified at 0:38 Friday 25th November, 2005
-
Hi, My project uses a telephony hardware which comes with its own initializing software. Each time i run my app, i've to run the said s/w for initializing the h/w. So, i think it'll be better if my app itself runs it on startup. I've lookd up the MSDN and ended up on Createprocess(:confused:). I burnd my head a lot, but its not workin, probably, the parameters i passd r incorrect.. plz help me out. thanks, -- ano -- modified at 0:38 Friday 25th November, 2005
hi you can use create process as follows. suppose app u want to run is saved on c: and its name is app.exe then u can try this STARTUPINFO si={0}; PROCESS_INFORMATION pi={0}; if(!CreateProcess(NULL,"c:\\app.exe",NULL,NULL,FALSE,CREATE_NEW_CONSOLE,NULL, NULL,&si,&pi)) { printf("\nError in creating the process"); } else printf("\nBe happy"); sanket patel