Jan 28, 2005 #1 D DaSilva Newbie level 4 Joined Jan 28, 2005 Messages 7 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 42 C++ Problem How can i execute an external exe from visual c++, for example notepad.exe??
Jan 28, 2005 #2 bilgekaan Full Member level 2 Joined Nov 18, 2004 Messages 125 Helped 15 Reputation 30 Reaction score 1 Trophy points 1,298 Location Turkiye Activity points 1,300 Re: C++ Problem 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);
Re: C++ Problem 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);
Jan 28, 2005 #3 S sshahid47 Full Member level 1 Joined Nov 5, 2004 Messages 99 Helped 15 Reputation 30 Reaction score 2 Trophy points 1,298 Activity points 974 C++ Problem Hi, refer to this topic