Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How can I execute an external exe from Visual C++?

Status
Not open for further replies.

DaSilva

Newbie level 4
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??
 

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);
 

C++ Problem

Hi,
refer to this topic
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top