FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to open a URL?

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
gxl117



Joined: 22 Dec 2008
Posts: 3

PostPosted: Mon Dec 22, 2008 1:51 am    Post subject: How to open a URL? Reply with quote

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
View user's profile Send private message
ideage



Joined: 12 Jul 2006
Posts: 63
Location: china

PostPosted: Tue Dec 23, 2008 7:57 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
gxl117



Joined: 22 Dec 2008
Posts: 3

PostPosted: Wed Dec 24, 2008 7:42 am    Post subject: Reply with quote

Thanks a lot, I get it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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