CString GetDefaultBrowser() { TCHAR szPath[_MAX_PATH] = {0,}; HFILE h = _lcreat("dummy.htm",0) ; _lclose(h) ; FindExecutable(_T("dummy.htm"), NULL, szPath); DeleteFile(_T("dummy.htm")); return CString(szPath); } ... ::ShellExecute (NULL, _T("open"), GetDefaultBrowser(), _T("http://www.google.com"), NULL, SW_SHOWNORMAL);
Browser
Win32
Windows
Retrieved from http://hyacinth.byus.net/moniwiki/wiki.php/C++/(Windows)기본 브라우저 열기
last modified 2013-06-17 13:01:02