I have two Windows applications (EXEs). I would like to do this:
A:
void foo(int a)
{
MessageBox(a);
}
B:
p = CreateProcess("A.exe");
CallFunction(p, "foo", 15);
How this “CallFunction” can be done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will need to use an IPC (Inter-Process Communication) method. There are a number of options for this, including DCOM, named pipes, and Windows messages.