Click here to Skip to main content
15,868,007 members
Articles / General Programming / Internet
Alternative
Tip/Trick

Opening the Internet Browser Programmatically

Rate me:
Please Sign up or sign in to vote.
4.50/5 (2 votes)
15 Aug 2011CPOL 9.9K   4
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)


Written By
Web Developer
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
General"system("explorer http://www.codeproject.com");" also opens ... Pin
Caner Korkmaz15-Aug-11 22:42
Caner Korkmaz15-Aug-11 22:42 
GeneralRe: Thanks, it works very well Pin
namco008817-Aug-11 22:10
namco008817-Aug-11 22:10 
GeneralRe: In my Windows XP, the explorer.exe just opens up the Interne... Pin
shu22-Aug-11 22:51
shu22-Aug-11 22:51 
GeneralReason for my vote of 4 The best way... Pin
Maximilien15-Aug-11 9:35
Maximilien15-Aug-11 9:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.