Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Converting hex string to hex number? Pin
David Crow2-Aug-06 6:19
David Crow2-Aug-06 6:19 
GeneralRe: Converting hex string to hex number? Pin
Wheatbread2-Aug-06 6:36
Wheatbread2-Aug-06 6:36 
AnswerRe: Converting hex string to hex number? Pin
basementman2-Aug-06 6:38
basementman2-Aug-06 6:38 
AnswerRe: Converting hex string to hex number? Pin
Zac Howland2-Aug-06 6:54
Zac Howland2-Aug-06 6:54 
QuestionAutomated MS Word and VC++ [modified] Pin
georgekjolly2-Aug-06 6:12
georgekjolly2-Aug-06 6:12 
AnswerRe: Automated MS Word and VC++ Pin
DaTxomin2-Aug-06 13:45
DaTxomin2-Aug-06 13:45 
GeneralRe: Automated MS Word and VC++ Pin
georgekjolly2-Aug-06 17:35
georgekjolly2-Aug-06 17:35 
QuestionNetUserGetInfo Problems - PLZ Help Pin
Programm3r2-Aug-06 5:21
Programm3r2-Aug-06 5:21 
DWORD retval;
LPWSTR domaincontroller = NULL;
LPUSER_INFO_3 buffer = NULL;

NET_API_STATUS nStatus;

WCHAR *uni_domain = NULL;
WCHAR *uni_username = NULL;

uni_domain=L"Elko";
uni_username=L"richardb";

ofstream outValues;
outValues.open("ValidUserName.txt",ios::out);
outValues << uni_domain << endl;
outValues << uni_username << endl;

// This nStatus returns a true. But if I comment this part out.....

nStatus = NetGetDCName(NULL, uni_domain, (LPBYTE *)&domaincontroller);

if(nStatus != NERR_Success){
retval = NULL;
return false;
}else{
return true;
}
if(domaincontroller == NULL){
retval = NULL;
return false;
}else{
return true;
}

.... the "second" nStatus returns false. The NetUserGetInfo funtion is giving me alot of problems.....

nStatus = NetUserGetInfo(domaincontroller, uni_username, 3, (LPBYTE*)&buffer);

if(nStatus != NERR_Success){
retval = NULL;
return false;
}else{
return true;
}

.... can anyone plz help

Thanx in advance

Regards

Programm3r

QuestionRe: NetUserGetInfo Problems - PLZ Help Pin
David Crow2-Aug-06 5:53
David Crow2-Aug-06 5:53 
QuestionSize of an empty class Pin
Sarath C2-Aug-06 4:46
Sarath C2-Aug-06 4:46 
AnswerRe: Size of an empty class Pin
Zac Howland2-Aug-06 5:15
Zac Howland2-Aug-06 5:15 
GeneralRe: Size of an empty class Pin
Sarath C2-Aug-06 5:24
Sarath C2-Aug-06 5:24 
GeneralRe: Size of an empty class Pin
Zac Howland2-Aug-06 5:45
Zac Howland2-Aug-06 5:45 
GeneralRe: Size of an empty class Pin
Sarath C2-Aug-06 18:59
Sarath C2-Aug-06 18:59 
AnswerRe: Size of an empty class [modified] Pin
prasad_som2-Aug-06 20:56
prasad_som2-Aug-06 20:56 
GeneralRe: Size of an empty class Pin
Zac Howland3-Aug-06 3:28
Zac Howland3-Aug-06 3:28 
AnswerRe: Size of an empty class Pin
David Crow2-Aug-06 5:51
David Crow2-Aug-06 5:51 
QuestionAnchor a dialog to another dialog Pin
NYTSX2-Aug-06 4:03
NYTSX2-Aug-06 4:03 
AnswerRe: Anchor a dialog to another dialog Pin
Ravi Bhavnani2-Aug-06 4:07
professionalRavi Bhavnani2-Aug-06 4:07 
GeneralRe: Anchor a dialog to another dialog Pin
Sarath C2-Aug-06 4:53
Sarath C2-Aug-06 4:53 
GeneralRe: Anchor a dialog to another dialog Pin
NYTSX2-Aug-06 5:04
NYTSX2-Aug-06 5:04 
GeneralRe: Anchor a dialog to another dialog Pin
Sarath C2-Aug-06 5:07
Sarath C2-Aug-06 5:07 
GeneralRe: Anchor a dialog to another dialog Pin
Ravi Bhavnani2-Aug-06 5:08
professionalRavi Bhavnani2-Aug-06 5:08 
QuestionMicrosft Visual Studio string tables with Similar Strings Pin
Christopher Stratmann2-Aug-06 3:50
Christopher Stratmann2-Aug-06 3:50 
AnswerRe: Microsft Visual Studio string tables with Similar Strings Pin
Ravi Bhavnani2-Aug-06 4:09
professionalRavi Bhavnani2-Aug-06 4:09 

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.