Click here to Skip to main content
Click here to Skip to main content
Alternative Tip/Trick

Opening the Internet Browser Programmatically

, 15 Aug 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
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 Wink | ;-) :

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)

Share

About the Author

kbo-mvs
Web Developer
Germany Germany
No Biography provided

Comments and Discussions

 
General"system("explorer http://www.codeproject.com");" also opens ... PinmemberCaner Korkmaz15-Aug-11 23:42 
GeneralRe: Thanks, it works very well Pinmembernamco008817-Aug-11 23:10 
GeneralRe: In my Windows XP, the explorer.exe just opens up the Interne... Pinmembershu22-Aug-11 23:51 
In my Windows XP, the explorer.exe just opens up the Internet Explorer. If you want the file-association behavior, call ShellExecute without the verb or system("start http://www.codeproject.com").
GeneralReason for my vote of 4 The best way... PinmemberMaximilien15-Aug-11 10:35 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141223.1 | Last Updated 15 Aug 2011
Article Copyright 2011 by kbo-mvs
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid