Miten voin suorittaa ulkoinen exe Visual C + +?

D

DaSilva

Guest
Miten voin suorittaa ulkoinen exe mistä Visual C + +, esimerkiksi notepad.exe??
 
SHELLEXECUTEINFO ShExecInfo = {0}; ShExecInfo.cbSize = sizeof (SHELLEXECUTEINFO); ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS; ShExecInfo.hwnd = NULL; ShExecInfo.nShow = SW_SHOW; ShExecInfo.lpVerb = NULL; ShExecInfo.lpFile = "Notepad.exe" ShExecInfo . lpParameters = "C: \\ \\ text.txt" ShExecInfo.lpDirectory = NULL; ShExecInfo.hInstApp = NULL; ShellExecuteEx (& ShExecInfo);
 

Welcome to EDABoard.com

Sponsor

Back
Top