从VC ++ 2005 Win 32控制台应用程序访问WinLdap函数。 [英] Accessing WinLdap functions from VC++2005 Win 32 console Appication.

查看:73
本文介绍了从VC ++ 2005 Win 32控制台应用程序访问WinLdap函数。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

我在win32控制台应用程序上准备访问wldap32.dll函数(在LDAP中使用)

我将wldap32.lib,winladap.h和wldap32.dll添加到appication.when我试图访问任何

函数它给出错误

我的应用程序识别" ldap_init函数为#define ldap_init ldap_initW"

错误C3861:'ldap_init':找不到标识符

错误C3861:'ldap_connect':找不到标识符。

如何我可以解决这个问题。


谢谢

chandujmkt

HI ,

i prepared on win32 console appication to access the wldap32.dll functions (used in LDAP)

i added wldap32.lib,winladap.h and wldap32.dll  to the appication.when am trying to access any

function it's giving errors

my appication identifying    " ldap_init function as        #define ldap_init    ldap_initW"

Error C3861: 'ldap_init': identifier not found 

Error C3861: 'ldap_connect': identifier not found .

so how i can fix this problem.


Thanks

chandujmkt

推荐答案

hi Chandujmkt, 

hi Chandujmkt , 

***可能是头文件名错误::  < span style ="color:#333333; font-size:14px; line-height:20.1620178222656px"> winladap.h - >   Winldap.h(如果没有,它只是输入错误..阅读

*** may be header file name is mistake ::  winladap.h --> Winldap.h ( if not , it just typing mistake .. read further )

如果您正确包含  wldap32.lib,  Winldap.h 
wldap32.dll到项目。任何方式再次检查你已经正确配置了一切。如果一切都已完成,目前只需发布代码以进一步建议。

Probably these Identifier not found errors will not come if you properly included wldap32.lib , Winldap.h and wldap32.dll to the project. Any way check once again you have properly configured everything. If everything done currently just post the code to suggest further.


这篇关于从VC ++ 2005 Win 32控制台应用程序访问WinLdap函数。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆