O.T. - How to launch web site from application (Visual C++ / Win32)

Hi,

Can someone please tell me how to
launch a web site with default browser from within an S.D.L. program?
(using Visual C++ on a Win32(P.C. Windows) platform)

Thanks in advance, I looked on Google but could not find.

S.D.L. Rocks!

Jesse "JeZ+Lee"
SLNTHERO at AOL.com
Silent Hero Productions®
http://www.SilentHeroProductions.com

Do a search for ShellExecute or ShellExecuteEX.

Lilith

Hi,

Can someone please tell me how to
launch a web site with default browser from within an S.D.L.
program?>>> On 8/31/2007 at 11:07 AM, “Jesse P.” wrote:
(using Visual C++ on a Win32(P.C. Windows) platform)

Thanks in advance, I looked on Google but could not find.

S.D.L. Rocks!

Jesse "JeZ+Lee"
SLNTHERO at AOL.com
Silent Hero Productions®
http://www.SilentHeroProductions.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hi,

Can someone please tell me how to
launch a web site with default browser from within an S.D.L. program?
(using Visual C++ on a Win32(P.C. Windows) platform)

Funnily enough, this subject’s come up a few times.On Fri, 2007-08-31 at 12:07 -0400, Jesse P. wrote:

On 5/25/06, Andre Krause wrote:

dear community,
does someone knows how to open an url from within my game / c code
in an external browser? i know how to do it in win32:

#ifdef LINUX
// todo
#endif

#ifdef _WIN32
#include <shellapi.h>
void open_url(const string& url)
{
ShellExecute(GetActiveWindow(),
“open”, url.c_str(), NULL, NULL, SW_SHOWNORMAL);
}
#endif

No, I never delete these e-mails :o)


Yahoo! Photos is now offering a quality print service from just 7p a photo. http://uk.photos.yahoo.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Duffy wrote:

Funnily enough, this subject’s come up a few times.

dear community,
does someone knows how to open an url from within my game / c code
in an external browser? i know how to do it in win32:

#ifdef LINUX
// todo
#endif

Hmm… that will give me something todo this weekend. Thanks! :wink:

Jim

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG2K8lQuDJiZ/QrH0RAoysAJ0aIez2MEAILGspHp6y4Os3C1/iwwCfV435
0+OcKtoGBf0LneR73RpKkjg=
=Rwnh
-----END PGP SIGNATURE-----> On 5/25/06, Andre Krause wrote: