Jump to content
  • Advertisement
Sign in to follow this  
BladeOfWraith

Web link from exe

This topic is 4508 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've just about finished my first game, and I was wondering how to put a link in my program where if somebody clicks it, my program can call their browser and open up my home page. I've looked for mention of this in three different search engines and can't find anything, so any help would be appreciated. Edit: I'm using C++ without MFC and if possible I'd prefer not to use mfc,

Share this post


Link to post
Share on other sites
Advertisement
Well you can do it the not-so-nice way which is:

System( path-string );

Try that.

Dave

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
ShellExecute(0, "open", "http://www.net.com", NULL, NULL, SW_SHOWNORMAL);

Share this post


Link to post
Share on other sites
Anonymous Poster ShellExecute(0, "open", "http://www.net.com", NULL, NULL, SW_SHOWNORMAL); [/qoute]
Thanks! Worked perfectly!
Quote:
Ranger50000 Try ShellExecute.

Looks like Anonymous Poster beat you to it!

Share this post


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

  • 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!