ShellExecute的网址如果含有?parm=1就会无法打开网页

C/C++/C#/C++Builder

之前好像是使用ShellExecute(NULL,”open”,”iexplorer.exe”,”www.***.***”,NULL,SW_MINIMIZE);

最近发现无法打开ie了。

换另外一个形式:

ShellExecute(NULL, _T(“open”), _T(“explorer.exe”),_T(“http://www.powerbuilder.ltd/index_cn.html”), NULL, SW_MINIMIZE);

这个写法可以

ShellExecute(NULL, _T(“open”), _T(“explorer.exe”),_T(“http://www.powerbuilder.ltd/index_cn.html?pbobfuscator”), NULL, SW_MINIMIZE);

这个写法也可以

ShellExecute(NULL, _T(“open”), _T(“explorer.exe”),_T(“http://www.powerbuilder.ltd/index_cn.html?pbobfuscator=”), NULL, SW_MINIMIZE);

只要含有=号就无法打开,而是打开“我的电脑”或者“我的文档”。有点尴尬。