Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / programming / Internet

Opening the Internet Browser Programmatically

4.50/5 (2 votes)
15 Aug 2011CPOL 10.6K  
I use this one in C++ (has the advantage that you can use your preferred browser ;-):ShellExecute (NULL, NULL, _T(http://www.codeproject.com), NULL, NULL, SW_SHOWNORMAL);

I use this one in C++ (has the advantage that you can use your preferred browser ;-):


C++
ShellExecute (NULL, NULL, _T("http://www.codeproject.com"),
    NULL, NULL, SW_SHOWNORMAL);

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)