I'm a bit of a newbie to C++, so I apologize in advance if this is
silly.
I've found many examples of binding to AD with ADsOpenObject or
IADsOpenDsObject. I can't compile my code. I've tried including
every header that would be appropriate. I always get "error LNK2020:
unresolved token(0A0000C1)IID_IADsOpenDSObject" or whatever other
IID* value I pass in as the second param to the function. I've also
tried the ADsOpenObject function with the same results.
HRESULT hr;
IADsOpenDSObject *pDSO;
hr = ADsGetObject(L"LDAP:", IID_IADsOpenDSObject, (void**)&pDSO);
I'm currently including the following:
#include "stdafx.h"
#include "activeds.h"
#include "MAPIWIN.H" //Got this from a search. Don't seem to need
it.
Thanks in advance for your time.