How To Build ADSI Code in Visual C++ (171723)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0
- Microsoft Active Directory Service Interfaces 2.5
This article was previously published under Q171723 SUMMARY
The ADSI help files do not specify the header or library files that you
need to build ADSI applications in Visual C or Visual C++.
If you are building new code (or using the code snippets in ADSI help), you
must include activeds.h, which will pull in the other ADSI header files.
The ADSI APIs are Unicode so you should also define UNICODE and _UNICODE
before including any system headers (for example, windows.h). If you are
using the LDAP provider's OLE DB support you will also need to include
oledb.h.
When you link your code you should add Adsiid.lib and Activeds.lib to your
object/library modules settings. If you are using the LDAP provider's OLE
DB support you will also need to add Oledb.lib.
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbAPI kbhowto kbnetwork KB171723 |
---|
|