Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 09-05-2005, 02:51 AM   #1
Member (1 bit)
 
Join Date: Sep 2005
Posts: 1
Calling .exe application using C/C++

Hai, i am Bryan523!
I meet an problem in using C program that
how to calling others .exe application from a C program?
or we have to use C++ to call exe program??
Any example can show this function to me?
Thanks!
bryan523 is offline   Reply With Quote
Old 09-06-2005, 06:45 AM   #2
Member (7 bit)
 
shaticus's Avatar
 
Join Date: May 2004
Posts: 103
Welcome to PCMech!

The simplest way to do it would probably just do a system call for your program name. Then you could do something like this:

#include
int main()
{
system("ping 127.01");
return 0;
}

just substituting ping 127.01 for the path to the executable you want.

HTH
Shaticus
shaticus is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:57 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2