how to pass value to MFC exe
-
hi all, i want to develop one application in VC++. A win32 dll can make use to call a MFC exe and to pass some argument value to that exe.At last the MFC exe can show the argument values passed by the dll. A messagebox should be show the argument's value ... thanks... invoke(arguments) Dll --------> MFC exe ---->MessageBox(arguments..) Try again and again, At last you will say I don't know the meaning for impossible.,.
-
hi all, i want to develop one application in VC++. A win32 dll can make use to call a MFC exe and to pass some argument value to that exe.At last the MFC exe can show the argument values passed by the dll. A messagebox should be show the argument's value ... thanks... invoke(arguments) Dll --------> MFC exe ---->MessageBox(arguments..) Try again and again, At last you will say I don't know the meaning for impossible.,.
Why don't you simply return the value from a function ? You call the function from the dll and store the result so it can be displayed in a message box. It is difficult to help you because you don't provide a lot of information about your problem.
Cédric Moonen Software developer
Charting control -
hi all, i want to develop one application in VC++. A win32 dll can make use to call a MFC exe and to pass some argument value to that exe.At last the MFC exe can show the argument values passed by the dll. A messagebox should be show the argument's value ... thanks... invoke(arguments) Dll --------> MFC exe ---->MessageBox(arguments..) Try again and again, At last you will say I don't know the meaning for impossible.,.
You can get access to the arguments that the DLL passed via
m_lpCmdLine
.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
-
hi all, i want to develop one application in VC++. A win32 dll can make use to call a MFC exe and to pass some argument value to that exe.At last the MFC exe can show the argument values passed by the dll. A messagebox should be show the argument's value ... thanks... invoke(arguments) Dll --------> MFC exe ---->MessageBox(arguments..) Try again and again, At last you will say I don't know the meaning for impossible.,.
u may get some clue from COM(DLL) event. event interface is defined in a share file which is shared by both EXE AND DLL, DLL calls the functions defined by event interface, and exe realizes those functions. life is like a box of chocolate,you never know what you r going to get.
-
Why don't you simply return the value from a function ? You call the function from the dll and store the result so it can be displayed in a message box. It is difficult to help you because you don't provide a lot of information about your problem.
Cédric Moonen Software developer
Charting controlhi, thanks for ur reply.. i want to call a MFC exe from another exe , so that i used shellExecute() to run another exe, at the same time ,i need to pass some parameter values to the another exe, which has to display the values in their corresponding edit box. for e.g., if i passed "NAME","NUMBER","MARK1" the another exe display those above information in their edit box. :) Try again and again, At last you will say I don't know the meaning for impossible.,.
-
You can get access to the arguments that the DLL passed via
m_lpCmdLine
.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
hi, thanks for ur reply.. i want to call a MFC exe from another exe , so that i used shellExecute() to run another exe, at the same time ,i need to pass some parameter values to the another exe, which has to display the values in their corresponding edit box. for e.g., if i passed "NAME","NUMBER","MARK1" the another exe display those above information in their edit box. :) Try again and again, At last you will say I don't know the meaning for impossible.,.
-
u may get some clue from COM(DLL) event. event interface is defined in a share file which is shared by both EXE AND DLL, DLL calls the functions defined by event interface, and exe realizes those functions. life is like a box of chocolate,you never know what you r going to get.
hi, thanks for ur reply.. i want to call a MFC exe from another exe , so that i used shellExecute() to run another exe, at the same time ,i need to pass some parameter values to the another exe, which has to display the values in their corresponding edit box. for e.g., if i passed "NAME","NUMBER","MARK1" the another exe display those above information in their edit box. :) Try again and again, At last you will say I don't know the meaning for impossible.,.
-
hi, thanks for ur reply.. i want to call a MFC exe from another exe , so that i used shellExecute() to run another exe, at the same time ,i need to pass some parameter values to the another exe, which has to display the values in their corresponding edit box. for e.g., if i passed "NAME","NUMBER","MARK1" the another exe display those above information in their edit box. :) Try again and again, At last you will say I don't know the meaning for impossible.,.
So what exactly is your question? I've already told you about
m_lpCmdLine
.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb