if u have on your desktop:
Code:#include <windows.h> int main () { system("start firefox.exe www.PUT THE WEBSITE HERE.com"); return 0; }
i'm trying...but even google is failing...
so...what code would i use to open a url after firefox is open? i'm sure it's possible.
if u have on your desktop:
Code:#include <windows.h> int main () { system("start firefox.exe www.PUT THE WEBSITE HERE.com"); return 0; }
Last edited by Matrix_NEO006; 12-17-2009 at 10:50 PM.
h4x0rswln is back (12-16-2009)
If you want to avoid using system() you can use ShellExecute instead.
Code:ShellExecute(NULL,"open","www.google.com",NULL,NULL,SW_SHOWNORMAL);
Last edited by Void; 12-16-2009 at 11:52 PM.
i'm getting an error with return 0;. any idea why?
You need to put a semi colon after system() function.
D: i forgot the semicolon! DOH!
EDIT: works now, thanks guys.
Maybe you should work on your C++ more?
Goals In Life:
[X] Become an Advanced Member
[X]Release a tut on mpgh
[0]Post 300 posts
[X]Make a working hack
[X] Learn c++
Hell_Demon (12-17-2009)
Last edited by ilovecookies; 12-17-2009 at 07:17 PM.