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

Using dll's

 
Post new topic   Reply to topic     Forum Index -> General
View previous topic :: View next topic  
Author Message
izguit



Joined: 09 Jan 2007
Posts: 3

PostPosted: Tue Jan 09, 2007 12:14 pm    Post subject: Using dll's Reply with quote

Heya,
I want to use dll's in a D program
How can I do that? I've not found it in the wikis and faq's?
thx

izguit
Back to top
View user's profile Send private message
rochus



Joined: 04 Jan 2007
Posts: 2
Location: germany

PostPosted: Wed Jan 10, 2007 6:13 am    Post subject: Reply with quote

http://www.digitalmars.com/d/dll.html

There's also a short howto on how to use them.
Back to top
View user's profile Send private message
izguit



Joined: 09 Jan 2007
Posts: 3

PostPosted: Wed Jan 10, 2007 11:35 am    Post subject: Reply with quote

thanks !
works with a dll created in other languages?
(i will test)
Back to top
View user's profile Send private message
rochus



Joined: 04 Jan 2007
Posts: 2
Location: germany

PostPosted: Wed Jan 10, 2007 1:07 pm    Post subject: Reply with quote

As long as you have some sort of "header" file - meaning that you know the methods - it should work exactly the way shown in the example.
Back to top
View user's profile Send private message
izguit



Joined: 09 Jan 2007
Posts: 3

PostPosted: Thu Jan 11, 2007 11:39 am    Post subject: Reply with quote

ok,

I have both source, headers and libs.
So, i just need to call implib and
import mydll;
?

Do i need to call getProcAdress nevertheless?

thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> General 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