Open a URL in C++

Ask a question


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


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

elcactus75 for this tip!
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team