🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

How to Execute programm from programm ?

Started by
5 comments, last by GregQ 24 years, 5 months ago
Hello . Anybody knows how to execute programm from programm in VC++ ? thanks ! quake3
quake3
Advertisement
try spawn.. or exec.. functions?
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.
Thank you guys !

quake3
quake3

This topic is closed to new replies.

Advertisement