Hi, can someone guide me how can i use a DLL in my code.
thanks.
Printable View
Hi, can someone guide me how can i use a DLL in my code.
thanks.
Read the COM course from Karl Moore, it is a very good start...
You have to define the DLL and the function you want from it. Definitions go in Declarations section of a module and look a bit like thisYou should find the actual declare along with the dll somewhere.Code:Public Declare Function FuntionName Lib "my.dll" Alias "functionnameA" (Variable1 As Long etc etc) As Long
www.vbapi.com
Most of the declares you will want to look for :D
I assumed it was a third party one, in which case it wouldn't be there ;) :D. If it is one of the Win32 API's, then indeed it will be, but if it is third party, there should be a declare in the documentation. Just copy/paste that into the declarations section of a module.Quote:
Originally posted by crptcblade
Most of the declares you will want to look for :D
oh, yes, a third party dll won't be found there :rolleyes:
What was that for?!Quote:
Originally posted by crptcblade
:rolleyes:
nothing, really, I just thought my post could use a smiley :)Quote:
Originally posted by chrisjk
What was that for?!