Home > Software engineering >  How the MFC calling Matlab to create exe will create the path to the MFC to exe
How the MFC calling Matlab to create exe will create the path to the MFC to exe

Time:09-23

I call in the MFC process to create a matlab exe, want to open this exe a specified path to it, could you tell me you how to implement the great god,

CodePudding user response:

ShellExecute (NULL, NULL, _T (" notepad. Exe "), _T (" \ "C: \ \ a.t xt " "), NULL, SW_SHOWNORMAL);
If you want to wait for processed CreateProcess

CodePudding user response:

reference 1st floor zgl7903 response:
ShellExecute (NULL, NULL, _T (" notepad. Exe "), _T (" \ "C: \ \ a.t xt " "), NULL, SW_SHOWNORMAL);
If you want to wait for processed CreateProcess

How the Matlab exe receives this path?

CodePudding user response:

GetCommandLine

CodePudding user response:

The
reference 3 floor q6771020 response:
GetCommandLine

Is there a GetCommandLine matlab instructions?

CodePudding user response:

Baidu search "the matlab command line parameters"

CodePudding user response:

reference 5 floor zhao4zhong1 reply:
baidu search "the matlab command line parameters"

Because MFC call is a MATLAB GUI packaged into exe, is called a MATLAB GUI process, the process of the GUI is how to receive this parameter?

CodePudding user response:

refer to 6th floor u011389629 response:
Quote: refer to the fifth floor zhao4zhong1 reply:

Baidu search "the matlab command line parameters"

Because MFC call is a MATLAB GUI packaged into exe, is called a MATLAB GUI process, the process of the GUI is how to receive this parameter?

Baidu search "the matlab command line parameters"

CodePudding user response:

Use the command line, the parameters of the Matlab is a command line command
  • Related