May 7, 2011 at 7:39pm
What am i doing wrong here. i just want to make a program, somwhat can open an url.
#pragma once
#include<windows.h>
#include<Shellapi.h>
int main()
{
int a=10;
while(a<0)
{
ShellExecuteW( NULL, L"open", L"www.google.com", NULL, NULL, SW_SHOW );
a--;
}
return 0;
}
May 7, 2011 at 9:00pm
Use http:// in front of your url. Without it, the shell thinks you want to open a file which obviously does not exists.
May 8, 2011 at 12:03am
it does not matter, if i put it or not
May 8, 2011 at 10:38am
Just by reading your code I can tell its an annoying program that pops up 10 copies of the google website..........grrrrrrrrrrr you are mean sir.
May 8, 2011 at 9:26pm
oooo i found out, that i should turn the system linker to console