你能把你的代码给我发一个吗,连到网站,执行
HINSTANCE RtnValue = ShellExecute(this->Handle,"Open", "http:www.1.com",
NULL, NULL, SW_SHOWNORMAL);
switch((int)RtnValue)
{ // 处理各种错理
case 0:
ShowMessage("The operating system is out of memory or resources.");
break;
case ERROR_BAD_FORMAT:
ShowMessage( "The .EXE file is invalid(non-Win32 .EXE or error in .EXE image");
break;
case SE_ERR_ACCESSDENIED:
ShowMessage( "The operating systemdenied access to the specified file.");
break;
case
SE_ERR_ASSOCINCOMPLETE: ShowMessage( "The filename association is incomplete or invalid.");
break;
case SE_ERR_DDEBUSY:
ShowMessage( "The DDE transaction could not be completed because other DDE transactions were being processed.");
break;
case SE_ERR_DDEFAIL:
ShowMessage( "The DDE transaction failed.");
break;
case SE_ERR_DDETIMEOUT:
ShowMessage( "The DDE transaction could not be completed because the request timed out.");
break;
case SE_ERR_DLLNOTFOUND: ShowMessage( "The specified dynamic-link library was not found.");
break;
case SE_ERR_FNF:
ShowMessage( "The specified file was not found.");
break;
case SE_ERR_NOASSOC:
ShowMessage( "There is no application associated with the given filename extension.");
break;
case SE_ERR_OOM:
ShowMessage( "There was not enough memory to complete the operation.");
break;
case SE_ERR_PNF:
ShowMessage( "The specified path was not found.");
break;
case SE_ERR_SHARE:
ShowMessage( "A sharing violation occurred.");
break;
default :
if ((int)RtnValue<32)
ShowMessage( "Unknown Error in ShellExecte.");
break;
}