To open the file with ShellExecute, path is variable how?
Int a=ShellExecute (NULL, TEXT (" open "),
sta, NULL, NULL, SW_MINIMIZE);
Sta is the string
CodePudding user response:
The TEXT (sta)
CodePudding user response:
Sorry for missing a quote
The TEXT (" the sta ")
CodePudding user response:
Such as open QQ. Exe
ShellExecute (NULL, "open", "qq. Exe", NULL, NULL, SW_SHOWMAXIMIZED);
CodePudding user response:
ShellExecute (NULL, _T (" open "), CA2W (strPath. C_str ()), CA2W (strFile. C_str ()), NULL, SW_SHOWNORMAL);//strPath with strFile type string
Remember useful junction post
CodePudding user response: