-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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