#define STRICT #include #include #include const TCHAR szOperation[] = _T("open"); const TCHAR szAddress[] = _T("www.helloworld.com"); int WINAPI WinMain(HINSTANCE hInst, HINSTANCE h, LPSTR lpCmd, int nShow) { HINSTANCE hRslt = ShellExecute(NULL, szOperation, szAddress, NULL, NULL, SW_SHOWNORMAL); assert( hRslt > (HINSTANCE) HINSTANCE_ERROR); return 0; }