Trying to make a simple program that open a webpage when executed but I'm getting a parse error, and I don't know why.
#include <windows.h>
#include <shellapi.h>
bool open_browser()
{
HINSTANCE result = ShellExecuteA( HWND, "open", "http://www.reddit.com",
NULL, NULL, SW_SHOWNORMAL );
// Return whether or not we were successful.
return (result);
}
int main( )
{
open_browser();
return 0;
}