Computing.Net > Forums > Programming > VC++ calling .exe

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VC++ calling .exe

Reply to Message Icon

Name: djas
Date: March 28, 2005 at 04:19:04 Pacific
OS: Windows XP Pro SP2
CPU/Ram: P4 2.40 GHZ 256 RAM
Comment:

Hey guys
i'm rubish at VC++ and I need to know what the alternative to this is to call the executable test.exe:

system("test.exe");

thanx in advance

djas



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: March 28, 2005 at 09:17:37 Pacific
Reply:

You can use Win32 API function ShellExecute

Chi

They mostly come at night...mostly


0

Response Number 2
Name: djas
Date: April 6, 2005 at 14:53:32 Pacific
Reply:

Sorry for being so long in replying,

This works in just plain C++ but not in VC++, can anyone help me out here?

ShellExecute(NULL, "open", "C:\\test.exe", "NULL", "-s -t 1",SW_SHOW);

thanx

djas


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VC++ calling .exe

Determining which file called .EXE www.computing.net/answers/programming/determining-which-file-called-exe/7234.html

calling .exe from VB6 www.computing.net/answers/programming/calling-exe-from-vb6/10776.html

Shared Memory and calling .exe´s www.computing.net/answers/programming/shared-memory-and-calling-exes/4367.html