How to Exit Game to Web Page?

Started by
4 comments, last by mtemple 19 years, 10 months ago
Gents, I need to be able to have my game exit and then go to my web page in Windows. Even better, I would like to be able to have the user''s default web browser called and then have it go to my URL. I don''t really care if this process causes my game to exit, of if it just loses focus. My game runs in full-screen mode under Windows. I am using C in Visual Studio 6.0. Any help would be greatly appreciated. I was unsure which programming forum to place this in, so I put it in both. Thanks in advance to all you geniuses out there!! Mark Temple Enemy Technology "We have found the enemy, and he is us!"
Mark TempleEnemy Technology"We have found the enemy, and he is us!"
Advertisement
ShellExecute()

Pass the web address as the filename and "open" as the operation.

Now you know how to do it, why do you want to? Won't this be a bit annoying for the user?



[edited by - Sandman on June 7, 2004 1:57:28 PM]
Yes, it would be very annoying, except that this is for the screen that will appear at the end of the demo game. It will be attached to the "Buy", or "More Info" button in case the user liked the demo enough to buy the full game (hope...hope), or just wants more information! In either case, it will be pretty obvious what the buttons do. I wouldn''t just yank him out of the game to piss him off!
Thanks for the information! There is a demo on my site right now, but it is very old. I will have the new one there in about two weeks. Take a look in about two weeks if you have the time or the interest. It''s at www.enemytechnology.com.
Thanks again Sandman!!!



Mark Temple
Enemy Technology

"We have found the enemy, and he is us!"
Mark TempleEnemy Technology"We have found the enemy, and he is us!"
You may want to consider not giving away plot points like that on your website.

Also, "When this is done at about mid-point of the single-player campaign, the player will discover that he is just a porn in a master plan of treachery, betrayal and more."
-- Steve --
Thanks spg! Nice catch on PORN! It''s been fixed. I''ve looked at that so many times and didn''t see it. Which plot points specifically do you think I should drop? There are still some major plot twists remaining and I just want to whet the appetite. But does it make you feel like you have too much info?

Thanks for the input!



Mark Temple
Enemy Technology

"We have found the enemy, and he is us!"
Mark TempleEnemy Technology"We have found the enemy, and he is us!"
Closed, because this is a cross-post. Post topics once only, please.

[ MSVC Fixes | STL Docs | SDL | Game AI | Sockets | C++ Faq Lite | Boost
Asking Questions | Organising code files | My stuff | Tiny XML | STLPort]

This topic is closed to new replies.

Advertisement