How do u run a program from C++ ??

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
usually there are functions like "system", "shell", or "exec". google will be helpful here.
 

dighn

Lifer
Aug 12, 2001
22,820
4
81
minesweeper so i guess windows?

include windows.h and using shellexecute() (google)
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
The WinExec function runs the specified application.

This function is provided for compatibility with 16-bit Windows. Win32-based applications should use the CreateProcess function.

UINT WinExec(
LPCSTR lpCmdLine, // address of command line
UINT uCmdShow // window style for new application
);