• Advertisement
Sign in to follow this  

how do i open an IE link from c++

This topic is 4904 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to oppen an Internet Explorer link from my c++ windows console application. I used to do it under TC using exec() or execl() func. What is the function and how should i use it to open an IE link ? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
EDIT: if you saw my other post ignore it, this code will work ...
system ("c:\\progra~1\\intern~1\\iexplore \"www.google.ca\"");
just goes to google for example.

[Edited by - ekrax on September 18, 2004 3:12:25 PM]

Share this post


Link to post
Share on other sites
Quote:
Original post by Ainokea
Is there a way to do this in firefox?


yes, try the same code but with the path to the firefox executable. there should be another way in which to do this as well that makes use of whatever browser the user has set as default.

-me

Share this post


Link to post
Share on other sites
Quote:
Original post by Palidine
there should be another way in which to do this as well that makes use of whatever browser the user has set as default.
ShellExecute(NULL, "open", "http://www.gamedev.net", NULL, NULL, SW_SHOWNORMAL);
That will open the page in the default browser. No need to use any browser paths.

224816 - INFO: Use ShellExecute to Launch the Default Web Browser

Share this post


Link to post
Share on other sites
This is insanely cool! How do you make it so it opens in a new window (and not steal my old one)?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement