Hi Research,
Have you tried just doing _spawnvp() and then _cwait()? It seems to work
correctly for me. Also, I believe that system() might do the same, but
you'd have to check if it might create a temporary console window,
what is certainly not what you want.
Cheers,
Alen
Research wrote:
> Hi,
> According to
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/Simplifying_Game_Installation.asp
> it is recommended to do a silent install of DirectX, but we're having
> trouble making this work.
> Our game doesn't need to be installed, so we're running stright from CD.
> When the CD is inserted, or the application launched, a "launcher" dialog is
> displayed. If the player clicks "play", then we are calling:
> ShellExecute(NULL, "open", "DirectX/dxsetup.exe", "/silent", NULL,
> SW_SHOWNORMAL);
> But this call doesn't seem to block and returns immediately, so if the
> player didn't already have the latest DX installed, it would be partway
> through installation when the game launched and of course this doesn't work.
> Is there a way or API to run a program and block until it finishes?
> Thanks,
> Brett Bibby
> GameBrains
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Gamedevlists-windows mailing list
> Gam...@li...
> https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
> Archives:
> http://sourceforge.net/mailarchive/forum.php?forum_id=555
--
Alen
|