Open a URL in C++

February 2017



Issue


How to open a link (URL) contained in a string, in C++?

Solution


Try this:
#include <windows.h>
.
char* linkChar="http://www.google.com";
.
ShellExecute(NULL, NULL, linkChar, NULL, NULL, SW_SHOWNORMAL);



elcactus75 for this tip!

Related


Published by deri58. Latest update on July 10, 2013 at 06:58 AM by deri58.
This document, titled "Open a URL in C++," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).