473,505 Members | 14,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ldap_init() can partly work but ldap_open works well

Hi
I have met a stang thing:. After call ldap_init(), pLDAP is not null, but
it member "ld_host" is NULL, (it should be "192.168.0.78"). and the following
set_option works well.

I have try to use both VC6's Wldap32.lib and platform Wldap32.lib.
And my current WLDAP32.DLL is 159K and modified at 2003/06/19 12:05. Is
this version incorrect?

Does any have the same experience?
Wish someone kind enlighten me.

The following is my codes.

PTCHAR hostName = "192.168.0.78";
pLDAP = ldap_init(hostName, LDAP_PORT) ;
if (pLDAP == NULL)
{
return;
}

ULONG version = LDAP_VERSION3;
ldap_set_option(pLDAP, LDAP_OPT_PROTOCOL_VERSION, &version);
Nov 17 '05 #1
1 1421
> I have met a stang thing:. After call ldap_init(), pLDAP is not null, but
it member "ld_host" is NULL, (it should be "192.168.0.78"). and the following
set_option works well.

I have try to use both VC6's Wldap32.lib and platform Wldap32.lib.


The wldap32.lib supplied with VC6 was incorrect - you need to use an
updated version from a more recent platform SDK installation (though
whether there are any later mis-matches, I don't know - I'm not aware
of any). Best thing is to ensure you're not using the corrupt VC6 lib
- delete it.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2778
by: Silvio Malitsch | last post by:
Hello, I have some trouble with designing my GUI for an application. I need to draw a certain shape (circle, rectangle) on a JPanel which follows the mouse move on that JPanel. Well the problem...
5
1639
by: zaw | last post by:
Hi I am working on implementing this script to shopping cart. Basically, it copies fill the shipping address from billing automatically. I believe one or more syntax is not netscape compatible....
5
2864
by: rogsonl | last post by:
My computer was moved last week, and the company changed the network groups we work on. As a result, one of the main benefits from Whidbey (database connectivity) no longer works. Situation: 1....
6
4841
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
0
1545
by: palomine1234 | last post by:
PAYPAL MAGIC!!! TURN $5 INTO $15,000 IN ONLY 30 DAYS...HERES HOW! This is a Money Scheme and Not, I repeat... This is Not a Scam!!!
1
1074
by: Martijn Mulder | last post by:
I use a System.Windows.Forms.SaveFileDialog to select and name the file to save my work. When I select an already existing file the SaveFileDialog automatically displays a Dialog: File ......
24
2253
by: Dennis | last post by:
I'm trying to use FindCrontrol and it will not work. Here is the code: Dim DisplayPanel As Panel DisplayPanel = CType(FindControl("pnlName"), Panel) No matter how I do it - I've tried...
1
2847
by: Harlan Messinger | last post by:
I'm sure this is covered on the Web, but I can't figure out a sufficiently narrow Google query: Suppose I have a hierarchical website structure Page 1 Page 1a Page 1b Page 1b1 Page 1b2 Page...
50
4429
by: Juha Nieminen | last post by:
I asked a long time ago in this group how to make a smart pointer which works with incomplete types. I got this answer (only relevant parts included): ...
0
7216
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
7018
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5613
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5028
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4699
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.