Hi,
I am using VC++ 6.0 and I have a problem with ldap.
I call ldap_init. Returned value is LDAP_SUCCESS, but next operation ( for example ldap_connect, or ldap_set_options ) is giving me this error: Access violation 0xC0000005.
Please help me ...
I need it very much.
Marian Bracinik.
THIS IS MY SOURCE CODE:
LDAP *ld;
int ldap_default_port, version;
if ( ( ld = ldap_init( "ldap.itd.umich.edu", LDAP_PORT ) ) == NULL ) {
AfxMessageBox("Error ldap_init"
return;
}
version = LDAP_VERSION3;
ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &version );
I am using VC++ 6.0 and I have a problem with ldap.
I call ldap_init. Returned value is LDAP_SUCCESS, but next operation ( for example ldap_connect, or ldap_set_options ) is giving me this error: Access violation 0xC0000005.
Please help me ...
I need it very much.
Marian Bracinik.
THIS IS MY SOURCE CODE:
LDAP *ld;
int ldap_default_port, version;
if ( ( ld = ldap_init( "ldap.itd.umich.edu", LDAP_PORT ) ) == NULL ) {
AfxMessageBox("Error ldap_init"
return;
}
version = LDAP_VERSION3;
ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION, &version );