This day was a mixture of Trial and error getting a C++ program to call a webpage from your default browser. It took several tries just to get the program to do this simple task. Everywhere I looked the programmers kept putting up this very long code. Yet all it took was:
#include <windows.h>
int main()
{
ShellExecute(NULL, "open", "http://google.net",
NULL, NULL, SW_SHOWNORMAL);
}
That simple program calls the webpage Google.ca.
No comments:
Post a Comment