参考: https://blog.51cto.com/zhupengyue/714178
CommandLineToArgvW 函数 (shellapi.h) - Win32 apps | Microsoft Learn
在 theApp中的InitInstance() 方法中
添加 列斯如下代码
int argc = 0;
LPWSTR* argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc);
CString exe = argv[0];
CString param = argv[1];