Assuming the code is C or similar ... I know nothing about these APIs, but the 
way you're calling them doesn't make sense. If they expect to receive a pointer 
to a wide character as their first parameter, then they presumably expect that 
pointer to point to a wide character string - taking a pointer to something 
else and converting it to a pointer to a wide character (as you're doing here) 
is almost certainly wrong. If this is the problem, then replacing <(PWCHR)> 
with <L> should fix it.

If the APIs don't expect a pointer to a wide character as the first parameter, 
why are you casting it to PWCHR?

> From: Kun Shi (ofox) [mailto:s...@vmware.com]
> 
> I need to access LDAP when running a msi on a Windows server 2008 , so
> I have to call LDAP APIs using CA. I tried 2 approaches, but both
> failed with error code 0x51 " Cannot contact the LDAP server ".
> 
> 1. ldap_open((PWCHR)"localhost", 389)
> 2. ldap_init( (PWCHR)"127.0.01", 389 ), then ldap_connect(...)
> 
> I also tested with ldp.exe on the same machine, it could connect to
> LDAP server with localhost.
> 
> Am I doing anything wrong? Did anybody have similar experience?
> 
> Thanks!
> -ofox

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to