darrellblackhawk
Programmer
I'm trying to compile an Active Directory example called:
"Example Code for Searching for Users" which is included with the Platform SDK.
I'm junior with C++ so I'm a little in the dark vis-a-vis
an error I get during compilation.
I'm assuming wsnprintf is a modification of printf, but I can only find scant reference to it ('wsnprintf') on the internet, include files, or sdk.
Am I forgetting to include some header, set a library reference, or have an incorrect compiler setting? (I assume so since I'm getting a *C2065 error*.)
I'm using Visual Studio 6.0
Any help would be appreciated.
Thanks
"Example Code for Searching for Users" which is included with the Platform SDK.
I'm junior with C++ so I'm a little in the dark vis-a-vis
an error I get during compilation.
Code:
* The Error *
[tt]..\findusers.cpp(154) : error C2065: 'wsnprintf' : undeclared identifier[/tt]
* Code that causes it *
// Add the filter.
wsnprintf(pszSearchFilter, dwLength, L"(&(objectClass=user)(objectCategory=person)%s)",szFilter);
I'm assuming wsnprintf is a modification of printf, but I can only find scant reference to it ('wsnprintf') on the internet, include files, or sdk.
Am I forgetting to include some header, set a library reference, or have an incorrect compiler setting? (I assume so since I'm getting a *C2065 error*.)
I'm using Visual Studio 6.0
Any help would be appreciated.
Thanks