帮个忙 急!
ShellExecute(0, NULL,“www.baidu.com”, NULL,NULL, SW_NORMAL);
ShellExecute(0, NULL,“www.baidu.com”, NULL,NULL, SW_NORMAL);
解决方案 »
- ConCreateInstance失败???
- 大伙帮我看下段FTP上传文件的代码有什么错误?
- 用CPropertysheet和CPropertyPage做属性页,怎样才能去掉Sheet下面的几个按钮阿?
- vc操作数据库时,明明存在记录,却报错"没有记录"!
- 问一个与VC无关的问题, 我不知去哪个社区
- 新建窗口中如何调用另一窗口的函数
- 关于消息映射
- win7+wireshark+802.1x?
- 怎么能统计程序的执行信息
- 求帮助!谁帮我设计一个MFC+access 数据库的家庭收支信息管理系统,
- static text里caption的汉字,为什么运行时是问号?
- 如何在基于对话框的程序中让多个动态创建的子窗口相应WM_CHAR消息
先用HTTP 访问下 看是否能正常登录
CString ValHttp1;
ValHttp1.Format( _T("http://baidu.com"));
BOOL bConn =::InternetCheckConnection(ValHttp1, 1, 0);
if (!bConn)
//不能正常登录
Performs an operation on a specified file. HINSTANCE ShellExecute(
HWND hwnd,
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);
Returns a value greater than 32 if successful, or an error value that is less than or equal to 32 otherwise. The following table lists the error values. The return value is cast as an HINSTANCE for backward compatibility with 16-bit Microsoft® Windows® applications. It is not a true HINSTANCE, however. The only thing that can be done with the returned HINSTANCE is to cast it to an integer and compare it with the value 32 or one of the error codes below.0 The operating system is out of memory or resources.
ERROR_FILE_NOT_FOUND The specified file was not found.
ERROR_PATH_NOT_FOUND The specified path was not found.
ERROR_BAD_FORMAT The .exe file is invalid (non-Win32® .exe or error in .exe image).
SE_ERR_ACCESSDENIED The operating system denied access to the specified file.
SE_ERR_ASSOCINCOMPLETE The file name association is incomplete or invalid.
SE_ERR_DDEBUSY The DDE transaction could not be completed because other DDE transactions were being processed.
SE_ERR_DDEFAIL The DDE transaction failed.
SE_ERR_DDETIMEOUT The DDE transaction could not be completed because the request timed out.
SE_ERR_DLLNOTFOUND The specified dynamic-link library was not found.
SE_ERR_FNF The specified file was not found.
SE_ERR_NOASSOC There is no application associated with the given file name extension. This error will also be returned if you attempt to print a file that is not printable.
SE_ERR_OOM There was not enough memory to complete the operation.
SE_ERR_PNF The specified path was not found.
SE_ERR_SHARE A sharing violation occurred.