Hi, I'm using Borland c++ 5.02, and I'm a new user. In my program I want to call another c++ program that i didn't have its code. Actually I used Matlab to C++ converter (in Matlab 6) and i have only the filename.exe. Is it possible and how?
The following is an example of using the system function.
Code:
#include <stdlib.h> // needed for system call
#include <stdio.h>
int main(void)
{
printf("About to spawn command.com and run a DOS command\n");
system("filename.exe"); // put the program you want to call in here
return 0;
}
James P. Cottingham
I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.