
DLL handle & DLL Function handle
Ian,
Thanks for the reply. -- JIM
Quote:
> > I need to get a handle to a dll, and then subsequently to a function in
> > the dll.
> > I'm using LoadLibrary to get the handle of the dll, but what about a
> > specific function?
> > -- JIM
> Jim,
> Use GetProcAddress:
> DECLARE:
> Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long,
> ByVal lpProcName As String) As Long
> CODE:
> DLLProcAddress = GetProcAddress(DLLModuleHandle, "DllFunction" +
> Chr$(0))
> Regards
> Ian McLaren