tags:

views:

72

answers:

2

Hello,

In c/c++ in windows, how do i open a website using the default browser.. in mac os x, i do system("open http://url");

A: 

Windows has start

Sjoerd
+8  A: 

You have to use ShellExecute. This topic is covered by this KB article: http://support.microsoft.com/kb/224816

The C code to do that is as simple as:

ShellExecute(NULL, "open", "http://url", NULL, NULL, SW_SHOWNORMAL);
Lorenzo
Thanks, this helped a lot :)
Daniel
You're welcome!
Lorenzo