Click here to Skip to main content
15,899,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Answerquick way to convert int to null terminated string Pin
mkuhac3-May-05 10:56
mkuhac3-May-05 10:56 
AnswerRe: convert int to char?? Pin
CodeBeetle8-May-05 10:09
CodeBeetle8-May-05 10:09 
AnswerRe: convert int to char?? Pin
owillebo1-Aug-05 1:32
owillebo1-Aug-05 1:32 
Generalcontext sensitive help, vs6 -> vs7 Pin
IlanTal2-May-05 22:15
IlanTal2-May-05 22:15 
General3 D Push Button control Pin
thiyags2-May-05 21:04
thiyags2-May-05 21:04 
GeneralRe: 3 D Push Button control Pin
ThatsAlok2-May-05 23:53
ThatsAlok2-May-05 23:53 
GeneralActive Directory Pin
Yevgeny Efter2-May-05 20:46
Yevgeny Efter2-May-05 20:46 
GeneralRe: Active Directory Pin
spsharma2-May-05 23:22
spsharma2-May-05 23:22 
//adding a user

void AddUser(LPWSTR UserName,LPWSTR UserPassword)
{
CoInitialize(NULL);
IADsContainer *container;
LPWSTR ADPath = L"LDAP://serv1/CN=Users,dc=codeproject,dc=com";

hr = ADsOpenObject(ADPath, UserName, UserPassword, ADS_SECURE_AUTHENTICATION, IID_IADsContainer, (void**)&container);

IDispatch *pDisp;
hr = container->Create(L"user",L"cn=Efter",&pDisp);
container->Release();

IADsUser *pUser;
hr = pDisp->QueryInterface(IID_IADsUser,(void**)&pUser);
pDisp->Release();

VARIANT var; VariantInit(&var);
V_BSTR(&var) = L"Yevgeny";
V_VT(&var)=VT_BSTR;
hr = pUser->Put(L"samAccountName",var);
hr = pUser->SetInfo();

VariantClear(&var);
pUser->Release();

CoUninitialize();
return 0;
}
QuestionHelp needed in setting the dimensions of the window, when clicked on restore? Pin
ledallam2-May-05 20:21
ledallam2-May-05 20:21 
AnswerRe: Help needed in setting the dimensions of the window, when clicked on restore? Pin
Abhi Lahare2-May-05 22:19
Abhi Lahare2-May-05 22:19 
GeneralPostgreSQL Pin
Deian2-May-05 20:16
Deian2-May-05 20:16 
QuestionCFileDialog save/replace problem? Pin
ledallam2-May-05 20:08
ledallam2-May-05 20:08 
AnswerRe: CFileDialog save/replace problem? Pin
James R. Twine3-May-05 3:44
James R. Twine3-May-05 3:44 
GeneralJava Launcher Pin
vyjesh2-May-05 19:55
vyjesh2-May-05 19:55 
GeneralRe: Java Launcher Pin
CP Visitor2-May-05 23:03
CP Visitor2-May-05 23:03 
GeneralHELP!!! Dependancy problem of MFC. Pin
Sstar2-May-05 19:39
Sstar2-May-05 19:39 
GeneralRe: HELP!!! Dependancy problem of MFC. Pin
Christian Graus2-May-05 19:51
protectorChristian Graus2-May-05 19:51 
GeneralRe: HELP!!! Dependancy problem of MFC. Pin
Sstar3-May-05 21:46
Sstar3-May-05 21:46 
GeneralRe: HELP!!! Dependancy problem of MFC. Pin
Christian Graus8-May-05 12:38
protectorChristian Graus8-May-05 12:38 
GeneralGDIPLUS question Pin
Rassul Yunussov2-May-05 19:00
Rassul Yunussov2-May-05 19:00 
GeneralRe: GDIPLUS question Pin
Christian Graus2-May-05 19:50
protectorChristian Graus2-May-05 19:50 
GeneralRe: GDIPLUS question Pin
Rassul Yunussov2-May-05 20:33
Rassul Yunussov2-May-05 20:33 
GeneralRe: GDIPLUS question Pin
Christian Graus3-May-05 13:13
protectorChristian Graus3-May-05 13:13 
GeneralPort blocking ->development of drivers Pin
URagavSouth2-May-05 18:44
URagavSouth2-May-05 18:44 
GeneralRe: Port blocking ->development of drivers Pin
ThatsAlok2-May-05 23:16
ThatsAlok2-May-05 23:16 

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.