-
May 24th, 2004, 06:17 AM
#1
how to run other softwares?
hi gurus,
i don't know if this is the right forum...
i want to make a visual c ++ application that recives input , then opens matlab(if not opened) run an m file there and then open 3ds max (if not opend)and run a script there.
i have absolutely no idea how to do it .
a general answer on hoe to run other softwares is also good
thanks
-
May 24th, 2004, 06:23 AM
#2
you can use CreateProcess
look in the msdn for further details
example to start the explorer:
Code:
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
CreateProcess(NULL, "explorer.exe", NULL,NULL,FALSE,0,NULL,NULL,&si,&pi);
-
May 24th, 2004, 06:26 AM
#3
If you don't want to run other applications as your sub-process, you can also use ShellExecute.
-
May 24th, 2004, 06:42 AM
#4
thanks.
ok but can i run something in the proccess i opened through the c++ app?
in bigBA's example perform a search for a file (for example)
-
May 24th, 2004, 07:07 AM
#5
hm.. you can pass parameters to the app...
-
May 24th, 2004, 07:31 AM
#6
Take a look at the following FAQ...
-
May 24th, 2004, 08:03 AM
#7
ok , i can open a proccess allright but i cant do the next step.
for example in 3ds max , after the proccess is opened i want to
do : Maxscripts->run scrips->somescript
i do NOT want to open a file using a proccess (like open notepad.exe with sometxt.txt)
how do i manipulate the proccess after i open it ?
thank you !
-
May 24th, 2004, 09:20 AM
#8
Originally posted by urika
how do i manipulate the proccess after i open it ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|