Re: Calling ShellExecute to open a URL in the default browser

2010-08-04 Thread Simen kjaeraas
Daniel Worthington wrote: import std.c.windows.windows; int main(string[] args) { extern (Windows) HINSTANCE ShellExecuteW(HWND, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR, INT); HINSTANCE i = ShellExecuteW(null, "open", "http://www.example.com";, null, null, SW_SHOW); return 0; } Err

Calling ShellExecute to open a URL in the default browser

2010-08-04 Thread Daniel Worthington
I am trying to compile the following code using: dmd test.d or dmd test.d shell32.lib import std.c.windows.windows; int main(string[] args) { extern (Windows) HINSTANCE ShellExecuteW(HWND, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR, INT); HINSTANCE i = ShellExecuteW(null, "open", "http://www