• Advertisement

Archived

This topic is now archived and is closed to further replies.

Link error while using ADSI (Active Directory Service Interfaces)

This topic is 5561 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

greetings. i have a problem. i am trying to get familiarized with ADSI and i can''t seem to get anywhere coz i got the following message when i try to link: error LNK2001: unresolved external symbol _IID_IADsContainer :/ my includes are: #include <windows.h> #include <iads.h> #include <adshlp.h> #include <stdio.h> #include <commctrl.h> and i use vc++ 6.0 SP5 help?

Share this post


Link to post
Share on other sites
Advertisement
You''re not linking with some library. I have no idea about ADSI, but if you get this error in DirectX, you can either link with guids.lib (i think), or - and this might work - #define INITGUID before including any headers. E.g.:

  
#define INITGUID

#include <windows.h>

#include <iads.h>

#include <adshlp.h>

#include <stdio.h>

#include <commctrl.h>


HTH

Share this post


Link to post
Share on other sites

  • Advertisement