Hi!
I am developing a project in which i want to run 2 programs simultaneously in such a way that when the user runs 1st program,the 2nd program gets called from the 1st program and now both the 1st program and the 2nd program start executing simultaneously.
For ex :Suppose there is a program called work.exe in my current directory.
now i would call it in the following code
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#inclue<dos.h>
void main()
{
system("work.exe");
while(1)
{
printf("Hi!,How are you?");
}
}
The work.exe prints ("Hello!") on the screen.
Now i want that both "Hello!" and "Hi!How are you?" gets printer simultaneosly and contineously on the screen.
Normally what happens that when we call another program from our code through the system command,then till the execution of the called program stops,the code of the calling program doesn't gets executed.
Hence i want that both the called program and the calling program gets executed simultaneously.
Any suggestions,Kindly help.I am just stucked very badly in my project due to this.
Thanks in advance.
Regards
Rituraj Raina