Execute programs with arguments
-
I am creating a simple launcher for quake2 in mfc where i want to launch it with "quake2.exe +set maxclients 16" etc. I am only familiar with shellexecute, but i have problems launching anything with arguments, is there anything built in mfc or a c++ function i could use to launch with arguments? Thanks.
-
I am creating a simple launcher for quake2 in mfc where i want to launch it with "quake2.exe +set maxclients 16" etc. I am only familiar with shellexecute, but i have problems launching anything with arguments, is there anything built in mfc or a c++ function i could use to launch with arguments? Thanks.
Actually
ShellExecute
allows you to specify application parameters. What are you doubts about? :confused:If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
Actually
ShellExecute
allows you to specify application parameters. What are you doubts about? :confused:If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
I guess i did not test it fully, now that i know it should work i am sure il sort it out :)
-
I am creating a simple launcher for quake2 in mfc where i want to launch it with "quake2.exe +set maxclients 16" etc. I am only familiar with shellexecute, but i have problems launching anything with arguments, is there anything built in mfc or a c++ function i could use to launch with arguments? Thanks.
FredrickNorge wrote:
I am only familiar with shellexecute, but i have problems launching anything with arguments, is there anything built in mfc or a c++ function i could use to launch with arguments?
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb