LIBLDAP.DLL and Visual Basic.

Thu, 8 Dec 1994 16:13:53 GMT +1


I wonder if anyone can help me. I am trying to call libldap.dll
functions from Visual Basic 3.0. So far I have had little success !
The declaration for the function I am trying to use (ldap_open) is as

Declare Function LDAP_Open Lib "D:\user\bse91cr\xviewer\libldap.dll"
Alias "_ldap_open" (ByVal host As String, ByVal port As Integer) As

Notice that I am using Long to represent the LDAP structure returned
from this function. I am not really very satisfied with this but I am
clutching at straws now !

The program currently crashes taking Visual Basic with it ! If anyone
has any bright ideas _please_ let me know !

Many Thanks,

--Chris Radley.

Mr. Christopher Radley 'Time is an illusion,
Software Engineering Student Lunchtime doubly so'
De Montfort University : Milton Keynes - Ford Prefect.
Mail :