Click here to Skip to main content
15,901,951 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Creating/Deleting Directories in Windows (no .nET) Pin
kakan26-Apr-06 23:41
professionalkakan26-Apr-06 23:41 
AnswerRe: Creating/Deleting Directories in Windows (no .nET) Pin
Michael Dunn27-Apr-06 19:58
sitebuilderMichael Dunn27-Apr-06 19:58 
Questionconvert from char a[MAX_PATH] to LPCWSTR Pin
gbabu1726-Apr-06 22:25
gbabu1726-Apr-06 22:25 
AnswerRe: convert from char a[MAX_PATH] to LPCWSTR Pin
Nibu babu thomas26-Apr-06 22:31
Nibu babu thomas26-Apr-06 22:31 
GeneralRe: convert from char a[MAX_PATH] to LPCWSTR Pin
gbabu1726-Apr-06 22:50
gbabu1726-Apr-06 22:50 
GeneralRe: convert from char a[MAX_PATH] to LPCWSTR Pin
Nibu babu thomas26-Apr-06 22:53
Nibu babu thomas26-Apr-06 22:53 
GeneralRe: convert from char a[MAX_PATH] to LPCWSTR Pin
Cedric Moonen26-Apr-06 22:56
Cedric Moonen26-Apr-06 22:56 
GeneralRe: convert from char a[MAX_PATH] to LPCWSTR Pin
Hamid_RT27-Apr-06 2:06
Hamid_RT27-Apr-06 2:06 
if your problem is NetUserGetInfo for conversition) use (or like this)

LPTSTR user;
LPTSTR computer;

user=(LPTSTR)LocalAlloc(LPTR,256);
computer=(LPTSTR)LocalAlloc(LPTR,256);

DWORD d=256;
GetUserName(user,&d);

DWORD dd=256;
GetComputerName(computer,&dd);

wchar_t *m_User = T2W(user);
wchar_t *m_computer = T2W(computer);
DWORD dwLevel = 4;
USER_INFO_2 *m_Userinfo;

DWORD dddd=NetUserGetInfo(m_computer, m_User , 2, (LPBYTE*)&m_Userinfo);

GeneralRe: convert from char a[MAX_PATH] to LPCWSTR Pin
David Crow27-Apr-06 5:54
David Crow27-Apr-06 5:54 
Questiondesign pattern Pin
Krishnatv26-Apr-06 22:21
Krishnatv26-Apr-06 22:21 
AnswerRe: design pattern Pin
Nibu babu thomas26-Apr-06 22:29
Nibu babu thomas26-Apr-06 22:29 
GeneralRe: design pattern Pin
Krishnatv26-Apr-06 22:45
Krishnatv26-Apr-06 22:45 
GeneralRe: design pattern Pin
Rahim Rattani27-Apr-06 2:50
Rahim Rattani27-Apr-06 2:50 
QuestionHow to replace the own executable? Pin
div!sion26-Apr-06 21:57
div!sion26-Apr-06 21:57 
AnswerRe: How to replace the own executable? Pin
benjymous26-Apr-06 22:36
benjymous26-Apr-06 22:36 
Questionstrange: why is Font clearer than drawing (2)? Pin
includeh1026-Apr-06 21:33
includeh1026-Apr-06 21:33 
Questiondos aplication Pin
viliam26-Apr-06 21:12
viliam26-Apr-06 21:12 
AnswerRe: dos aplication Pin
Stephen Hewitt26-Apr-06 21:15
Stephen Hewitt26-Apr-06 21:15 
GeneralRe: dos aplication Pin
viliam27-Apr-06 3:21
viliam27-Apr-06 3:21 
GeneralRe: dos aplication Pin
Stephen Hewitt27-Apr-06 13:35
Stephen Hewitt27-Apr-06 13:35 
AnswerRe: dos aplication Pin
Cedric Moonen26-Apr-06 21:17
Cedric Moonen26-Apr-06 21:17 
GeneralRe: dos aplication Pin
viliam27-Apr-06 3:26
viliam27-Apr-06 3:26 
QuestionMDI - Repaint all children Pin
Sarvan AL26-Apr-06 21:07
Sarvan AL26-Apr-06 21:07 
AnswerRe: MDI - Repaint all children Pin
Nibu babu thomas26-Apr-06 21:17
Nibu babu thomas26-Apr-06 21:17 
GeneralRe: MDI - Repaint all children Pin
Sarvan AL26-Apr-06 22:00
Sarvan AL26-Apr-06 22:00 

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.