急! VC6小程序在VC.NET下通不过
用VC6做了一个window应用程序,功能就是调用IE,打开一个指定网站!
程序如下:
#include "stdafx.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
HINSTANCE result = ShellExecute(NULL, "open", "www.sina.com.cn", NULL,NULL, SW_SHOW);
return 0;
}
在VC6下运行成功,但在.NET下有问题