C++ open url: in default browser

C++ open url: in default browser

Do you want to know how to open a link (URL) contained in a string, in C++? This quick article will show you how.

To open an URL in C++, try this:

#include <windows.h>
.
char* linkChar="[http://www.google.com]";
.
ShellExecute(NULL, NULL, linkChar, NULL, NULL, SW_SHOWNORMAL);
Any more programming questions? Check out our forum!
Around the same subject