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");
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");
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);