If I click on Start->Run type in something like www.google.com and hit OK, google will open on the default browser. I was wondering how to simulate that programatically. Does anyone know? Thank you.
If I click on Start->Run type in something like www.google.com and hit OK, google will open on the default browser. I was wondering how to simulate that programatically. Does anyone know? Thank you.
Possibly something like this?
Code:#include <stdlib.h> int main(void) { system("start www.google.com"); return 0; }
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
or
Code:ShellExecute(NULL, TEXT("open") , TEXT("www.google.com"), NULL, NULL, SW_SHOWNORMAL);