Sign in to follow this  

how do i open an IE link from c++

This topic is 4833 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
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 topic is 4833 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this