Pleace help!!!!

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;
}
Use http:// in front of your url. Without it, the shell thinks you want to open a file which obviously does not exists.
it does not matter, if i put it or not
closed account (3pj6b7Xj)
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.
oooo i found out, that i should turn the system linker to console
Topic archived. No new replies allowed.