C++ open url: in default browser
![C++ open url: in default browser](https://img-19.ccm.net/Jgg45XUnJ74ox05t36xd_ubHEp0=/480x335/smart/ddf5a2a7ead24da9874c4f55dabd414a/ccmcms-enccm/32470470.jpg)
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!
Subject
Replies