How to call another project's exe file
-
Hi,I have two MFC (MDI) projects written in VC++ 6.0, Project1, Project2 I would like to call the axcutable file of project2 in one of the menu options of project1. What is the code to do that? How can I have a pointer from project1 to the Doc and View class of project2 in order to access its functions???? Ehsan Behboudi
-
Hi,I have two MFC (MDI) projects written in VC++ 6.0, Project1, Project2 I would like to call the axcutable file of project2 in one of the menu options of project1. What is the code to do that? How can I have a pointer from project1 to the Doc and View class of project2 in order to access its functions???? Ehsan Behboudi
mr2003 wrote: I would like to call the axcutable file of project2 in one of the menu options of project1. What is the code to do that? Use ShellExecute() or CreateProcess(). mr2003 wrote: How can I have a pointer from project1 to the Doc and View class of project2 in order to access its functions???? Either put the common code in a DLL that both EXEs can use, or have EXE1 post a message to EXE2.
-
Hi,I have two MFC (MDI) projects written in VC++ 6.0, Project1, Project2 I would like to call the axcutable file of project2 in one of the menu options of project1. What is the code to do that? How can I have a pointer from project1 to the Doc and View class of project2 in order to access its functions???? Ehsan Behboudi
I use this code to call one process from other char* program="project2.exe"; //llama al proceso EcoSG.exe y deja el proceso llamador en espera _spawnl(P_WAIT,program,program,arguments,NULL); Daniel Cespedes "There are 10 types of people, those who understand binary and those who do not" "Santa Cruz de la Sierra Paraiso Terrenal!" daniel.cespedes@ieee.org
-
mr2003 wrote: I would like to call the axcutable file of project2 in one of the menu options of project1. What is the code to do that? Use ShellExecute() or CreateProcess(). mr2003 wrote: How can I have a pointer from project1 to the Doc and View class of project2 in order to access its functions???? Either put the common code in a DLL that both EXEs can use, or have EXE1 post a message to EXE2.
thanks for the help... I have another question,, say in the menu of program1, i have to following function,, CPogram1View:: OnFile_CallProgram2_FunctionXXX() { //I want to be able to call that specific function of program2.. // how can I do that? } Ehsan Behboudi
-
thanks for the help... I have another question,, say in the menu of program1, i have to following function,, CPogram1View:: OnFile_CallProgram2_FunctionXXX() { //I want to be able to call that specific function of program2.. // how can I do that? } Ehsan Behboudi
Did you consult the documentation for the two functions I mentioned?