View previous topic :: View next topic |
Author |
Message |
gxl117
Joined: 22 Dec 2008 Posts: 3
|
Posted: Mon Dec 22, 2008 1:51 am Post subject: How to open a URL? |
|
|
Hi,I'm beginner for DFL. I want to open a URL by the click address at a form. In the C/C++,i use ShellExecute(NULL,NULL,"URL",NULL,NUll,0).but it don't work for D. How to open a URL use DFL? |
|
Back to top |
|
|
ideage
Joined: 12 Jul 2006 Posts: 63 Location: china
|
Posted: Tue Dec 23, 2008 7:57 am Post subject: |
|
|
1.Declare
extern (Windows) HINSTANCE ShellExecuteW(HWND, LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR, INT);
2.Use it same in C.
ShellExecuteW
3.Compile time,link shell32.lib
dfl foo.d shell32.lib
________
magic flight launch box
Last edited by ideage on Wed Feb 02, 2011 5:10 pm; edited 1 time in total |
|
Back to top |
|
|
gxl117
Joined: 22 Dec 2008 Posts: 3
|
Posted: Wed Dec 24, 2008 7:42 am Post subject: |
|
|
Thanks a lot, I get it. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|