64,648
社区成员
发帖
与我相关
我的任务
分享
bResult = true;
strAdsu = QCoreApplication::applicationDirPath () + "\\OnlineUpdate-0612-console.exe";
string temp=strAdsu.toStdString();
size_t size=temp.length();
wchar_t *buffer=new wchar_t[size+1];
MultiByteToWideChar(CP_ACP,0,temp.c_str(),size,buffer,size*sizeof(wchar_t));
buffer[size]=L'\0';
::MessageBoxW(NULL,buffer,L"Test",MB_OK);
int result = (int)::ShellExecuteW(0, L"open", buffer, NULL, 0, SW_SHOWNORMAL);
delete buffer;