13,825
社区成员
发帖
与我相关
我的任务
分享
AnsiString strData = "www.csdn.net";
ShellExecuteA(NULL, "Open", strData.c_str(), NULL, NULL, SW_SHOWNORMAL);
或
UnicodeString strData = L"www.csdn.net";
ShellExecuteW(NULL, L"Open", strData.c_str(), NULL, NULL, SW_SHOWNORMAL);
WideString strData = L"www.baidu.com";
ShellExecuteW(NULL, WideString(L"open").c_bstr(),
strData.c_bstr(), NULL, NULL, SW_SHOWNORMAL);