Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

thorpe

Opening an URL in C++

This topic is 5727 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 want to open an URL in the standard browser by a call in a C++ program. Which functions should I call? Johan Torp - http://www.destruction.nu

Share this post


Link to post
Share on other sites
Advertisement
Thanks!

Though I get a problem, when I run shellexecute, my program freezes. How do I launch the browser in parallell?


Johan Torp - http://www.destruction.nu

Share this post


Link to post
Share on other sites
you are probobly just calling it wrong or somthing:

ShellExecute( hWindow, NULL, "http://www.gamedev.net", NULL, NULL, SW_SHOWNORMAL );

is how i do it (well... you gota replace with the real url),
and you have to have hWindow set as the calling window. not shure if it can be null or not. beter just set it as the desktop to be shure.




[edited by - aftermath on November 11, 2002 7:43:17 AM]

Share this post


Link to post
Share on other sites
I should have mentioned that I'm running a DirectX fullscreen game. It seems that no more messages (including WM_SETFOCUS) goes to the game dialog after I have called ShellExecute(). If I send a message just before I run ShellExecute() then it's recevied but all messages sent afterwards are not received and I cannot maximize the game from the taskbar anymore (close is the only option which isn't ghosted if I right click on the 'task window' in the taskbar).

Johan Torp - http://www.destruction.nu

[edited by - thorpe on November 11, 2002 10:52:05 AM]

Share this post


Link to post
Share on other sites
There was another bug which caused these syndroms.
Sorry to have bothered you!

Johan Torp - http://www.destruction.nu

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!