ShellExecute (NULL, _T (" open "), _T (" C: \ \ Users \ \ lenovo \ \ Desktop \ \ vc + + netplay gobang game (server + Client) \ \ Client \ \ Debug \ \ Client exe "), _T (" hello "), NULL, SW_SHOWNORMAL);
I want to go to the client. The exe and then passed the hello
CodePudding user response:
This is the content of the Client program prompt? It depends on the Client program is how to deal with input parameters of
CodePudding user response:
From the tip, parameters are passed in the past, seems to be the client. The exe there is something wrong with the use of parameters?
When using the command line to pass parameters runtime what kind of?
CodePudding user response:
BOOL CClientApp: : InitInstance ()
{
Cstrings sParameter;
for(int i=1; i<__argc; I++)
{
SParameter +=__argv [I];
//name=sParameter;
}
. I just wanted to be the client receives this parameters in exe is saved as a name, how should do?
CodePudding user response:
refer to the second floor zjq9931 response: from the tip, parameters are passed in the past, seems to be the client. The exe there is something wrong with the use of parameters? When using the command line to pass parameters runtime what kind of? I want to receive this parameter, please do? CodePudding user response:
reference 1st floor zgl7903 response: this is tip the contents of the Client program? It depends on the Client program is how to deal with input parameters of BOOL CClientApp: : InitInstance () { Cstrings sParameter; For (int I=1; i<__argc; I++) { SParameter +=__argv [I]; //name=sParameter; } I want to in the client hello is saved as a name, how should do? CodePudding user response:
__argc __targv is effective in the whole program cycle, can access at any time CodePudding user response:
reference 4 floor qq_41490368 response: Quote: refer to the second floor zjq9931 response: From the tip, parameters are passed in the past, seems to be the client. The exe there is something wrong with the use of parameters? When using the command line to pass parameters runtime what kind of? I want to receive this parameter, please do? From the point of tips, you have already received, and do the processing, You don't know what you want to do? This I don't know, Do you want to run the name program or what?