Advertisement

How to Execute programm from programm ?

Started by January 12, 2000 09:31 AM
5 comments, last by GregQ 24 years, 11 months ago
Hello . Anybody knows how to execute programm from programm in VC++ ? thanks ! quake3
quake3
try spawn.. or exec.. functions?
Advertisement
Relevent Win32 functions are CreateProcess and ShellExecute.
spawn and exec are two families of standard C calls.
Thanks!

quake3
quake3
Hi !!

Well, a very quick and dirty way is to use WinExec !! This function should not be used anymore but works quite well under Windows 9x !! I don''t know about Windows 2000 or Windows NT. However if it''s not that professionell product I would use it, because it''s one line !! If you use CreateProcess you need to fill out some very big complicated structures.

Phillip
WinExec is a deprecated API function. Under Win32 it can lock up the spawning program under certain circumstances.
Advertisement
Thank you guys !

quake3
quake3

This topic is closed to new replies.

Advertisement