Click here to Skip to main content
15,867,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: vc++ list problem Pin
Nikz21-Oct-09 7:29
Nikz21-Oct-09 7:29 
GeneralRe: vc++ list problem Pin
Nikz21-Oct-09 7:41
Nikz21-Oct-09 7:41 
AnswerRe: vc++ list problem Pin
Stuart Dootson1-Oct-09 22:32
professionalStuart Dootson1-Oct-09 22:32 
GeneralRe: vc++ list problem Pin
Nikz22-Oct-09 4:40
Nikz22-Oct-09 4:40 
QuestionLogin crashes when i enter a wrong password [modified] Pin
Vetukuri Raju1-Oct-09 5:50
Vetukuri Raju1-Oct-09 5:50 
QuestionRe: Login crashes when i enter a wrong password Pin
David Crow1-Oct-09 7:21
David Crow1-Oct-09 7:21 
QuestionRe: Login crashes when i enter a wrong password Pin
Maximilien1-Oct-09 7:54
Maximilien1-Oct-09 7:54 
QuestionHow to build visual c++ code Pin
raja 41-Oct-09 4:35
raja 41-Oct-09 4:35 
Dear Experts,

i could not able to build a following visual c++ code.can any one help me?

It shows can not open activeds.h


#define _UNICODE
#pragma comment( lib, "Activeds.lib" )
#pragma comment( lib, "Adsiid.lib" )

#include "stdafx.h"
#include <atlbase.h>
#include <activeds.h>
#include <cstringt.h>
#include <atlstr.h>
#include <comdef.h>
#include <Iads.h>
#include <Adshlp.h>

int _tmain(int argc, _TCHAR* argv[])
{
HRESULT hr;
IADsContainer *pCont = NULL;
CoInitialize(NULL);
hr = ADsGetObject(L"WinNT://xxx.com/dc1.yyy.xxx.com", IID_IADsContainer, (void**) &pCont );
if ( !SUCCEEDED(hr) ) { return hr;}
_variant_t var;
IEnumVARIANTPtr pEnum;
ADsBuildEnumerator (pCont,&pEnum);
int cnt=0;
ULONG ulFetched = 0L;
_variant_t vChild;
while((SUCCEEDED(ADsEnumerateNext(pEnum, 1, &vChild, &ulFetched)) && ulFetched==1))
{
IADsUser* pADs;
hr = V_DISPATCH(&vChild)->QueryInterface(IID_IADsUser, (void**)&pADs);
if(hr!=S_OK)
break;
BSTR bstrName;
pADs->get_Name(&bstrName);
CString csName=bstrName;
SysFreeString(bstrName);
printf("%s\n",csName);
pADs->Release();
pADs = NULL;

}

// Cleanup.
if ( pCont )
{
pCont->Release();
}
CoUninitialize();

}

return 0;
}
QuestionRe: How to build visual c++ code Pin
David Crow1-Oct-09 4:40
David Crow1-Oct-09 4:40 
AnswerRe: How to build visual c++ code Pin
Vetukuri Raju1-Oct-09 6:00
Vetukuri Raju1-Oct-09 6:00 
QuestionCapturing printed data Pin
ibnhatab1-Oct-09 3:50
ibnhatab1-Oct-09 3:50 
AnswerRe: Capturing printed data Pin
Richard MacCutchan1-Oct-09 5:50
mveRichard MacCutchan1-Oct-09 5:50 
GeneralRe: Capturing printed data Pin
ibnhatab1-Oct-09 6:20
ibnhatab1-Oct-09 6:20 
GeneralRe: Capturing printed data Pin
Richard MacCutchan1-Oct-09 6:55
mveRichard MacCutchan1-Oct-09 6:55 
GeneralRe: Capturing printed data Pin
ibnhatab1-Oct-09 7:00
ibnhatab1-Oct-09 7:00 
AnswerRe: Capturing printed data Pin
Stuart Dootson1-Oct-09 22:34
professionalStuart Dootson1-Oct-09 22:34 
GeneralRe: Capturing printed data Pin
Paul Belikian3-Oct-09 19:55
Paul Belikian3-Oct-09 19:55 
QuestionCreateInstance("Msxml2.XMLHTTP.4.0") fails Pin
Ash_VCPP1-Oct-09 3:23
Ash_VCPP1-Oct-09 3:23 
QuestionRe: CreateInstance("Msxml2.XMLHTTP.4.0") fails Pin
David Crow1-Oct-09 3:37
David Crow1-Oct-09 3:37 
AnswerRe: CreateInstance("Msxml2.XMLHTTP.4.0") fails Pin
Ash_VCPP1-Oct-09 3:42
Ash_VCPP1-Oct-09 3:42 
GeneralRe: CreateInstance("Msxml2.XMLHTTP.4.0") fails Pin
David Crow1-Oct-09 4:02
David Crow1-Oct-09 4:02 
AnswerRe: CreateInstance("Msxml2.XMLHTTP.4.0") fails Pin
Randor 1-Oct-09 3:49
professional Randor 1-Oct-09 3:49 
QuestionPortible Email Client for Embedded OEM system Pin
Kobib1-Oct-09 3:15
Kobib1-Oct-09 3:15 
JokeRe: Portible Email Client for Embedded OEM system Pin
enhzflep1-Oct-09 14:05
enhzflep1-Oct-09 14:05 
GeneralRe: Portible Email Client for Embedded OEM system Pin
Kobib3-Oct-09 21:39
Kobib3-Oct-09 21:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.