Archived

This topic is now archived and is closed to further replies.

l3mon

Open an URL from console app

Recommended Posts

Hi! I''m wondering how you''d open a URL with the system using the predefined browser from within a console application? If anyone can help me on this I''d greatly apreciate it. Thanks in advance

Share this post


Link to post
Share on other sites
#include <windows.h>

int main()
{
ShellExecute(NULL,"open","http://www.gamedev.net/", NULL, NULL, SW_SHOWNORMAL);

return 0;
}

Think thats what you want,
--helicon56.

Share this post


Link to post
Share on other sites