|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#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! |
|
|
|
|
|
#2 |
|
Member (7 bit)
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|