How To Build ADSI Code in Visual C++
If you are building new code (or using the code snippets in ADSI help), youmust include activeds.h, which will pull in the other ADSI header files.The ADSI APIs are Unicode so you should also define UNICODE and _UNICODEbefore including any system headers (for example, windows.h). If you areusing the LDAP provider's OLE DB support you will also need to includeoledb.h.
When you link your code you should add Adsiid.lib and Activeds.lib to yourobject/library modules settings. If you are using the LDAP provider's OLEDB support you will also need to add Oledb.lib.
Article ID: 171723 - Last Review: 07/11/2005 18:15:00 - Revision: 1.3
- kbhowto kbapi kbnetwork KB171723