Skip to content

Instantly share code, notes, and snippets.

@katopz
Created July 8, 2013 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katopz/5947612 to your computer and use it in GitHub Desktop.
Save katopz/5947612 to your computer and use it in GitHub Desktop.
Use ShellExecute to launch the default Web browser modify from http://support.microsoft.com/kb/224816
// don't forget to link shell32.lib; via Linker -> Input
#include "stdafx.h"
#include <Windows.h>
#include <shellapi.h>
int _tmain(int argc, _TCHAR* argv[])
{
ShellExecute(NULL, TEXT("open"), TEXT("http://sleepydesign.com"), NULL, NULL, SW_SHOWNORMAL);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment