Click here to Skip to main content
15,891,908 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to GetMessage()? Pin
Ryan Binns9-Mar-06 21:44
Ryan Binns9-Mar-06 21:44 
QuestionHow to read a pdf file using c++ Pin
Allang Garder7-Mar-06 17:10
Allang Garder7-Mar-06 17:10 
AnswerRe: How to read a pdf file using c++ Pin
Hamid_RT7-Mar-06 17:25
Hamid_RT7-Mar-06 17:25 
Questionhow to see which macro was defined in a cpp unit? Pin
derek77-Mar-06 16:39
derek77-Mar-06 16:39 
AnswerRe: how to see which macro was defined in a cpp unit? Pin
Stephen Hewitt7-Mar-06 17:11
Stephen Hewitt7-Mar-06 17:11 
AnswerRe: how to see which macro was defined in a cpp unit? Pin
Nibu babu thomas7-Mar-06 17:17
Nibu babu thomas7-Mar-06 17:17 
GeneralRe: how to see which macro was defined in a cpp unit? Pin
derek77-Mar-06 18:34
derek77-Mar-06 18:34 
Questionproblem with wide chars (urgent :( ) Pin
gamitech7-Mar-06 15:20
gamitech7-Mar-06 15:20 
I am using NtQueryDirectoryFile function to enumerate all files in a certain folder instead of FindFirstFile and FindNextFile. I just want to see their names so I use this structure
typedef struct _FILE_NAMES_INFORMATION {
ULONG NextEntryOffset;
ULONG Unknown;
ULONG FileNameLength;
WCHAR FileName[1];
} FILE_NAMES_INFORMATION, *PFILE_NAMES_INFORMATION;

how do I translate the "FileName" parameter to an multibyte char or a readble char.
I use WideCharToMultiByte(CP_ACP,0,n->FileName,n->FileNameLength,name,sizeof(name),NULL,NULL);
but the name is not totally translated but only the first 4 or 5 characters.

variable "name" being defined like this char *nume=(char *)malloc(n->FileNameLength);
Can someone please help me with this. it is verry urgent
thanks

gabby

-- modified at 21:20 Tuesday 7th March, 2006
AnswerRe: problem with wide chars (urgent :( ) Pin
Nibu babu thomas7-Mar-06 16:55
Nibu babu thomas7-Mar-06 16:55 
GeneralRe: problem with wide chars (urgent :( ) Pin
gamitech7-Mar-06 22:38
gamitech7-Mar-06 22:38 
GeneralRe: problem with wide chars (urgent :( ) Pin
Nibu babu thomas7-Mar-06 22:50
Nibu babu thomas7-Mar-06 22:50 
AnswerRe: problem with wide chars (urgent :( ) Pin
James R. Twine8-Mar-06 1:43
James R. Twine8-Mar-06 1:43 
QuestionMemeory 3G problems ? Pin
jianghongtu7-Mar-06 13:52
jianghongtu7-Mar-06 13:52 
QuestionDeactivating individual CListCtrl entries Pin
humots7-Mar-06 13:37
humots7-Mar-06 13:37 
AnswerRe: Deactivating individual CListCtrl entries Pin
Nibu babu thomas7-Mar-06 17:08
Nibu babu thomas7-Mar-06 17:08 
QuestionPrevent process being terminated Pin
Phil Harding7-Mar-06 12:14
Phil Harding7-Mar-06 12:14 
AnswerRe: Prevent process being terminated Pin
Ryan Binns7-Mar-06 17:23
Ryan Binns7-Mar-06 17:23 
QuestionHelp: VS.NET 2005 Help Broken? Pin
yellowine7-Mar-06 11:34
yellowine7-Mar-06 11:34 
AnswerRe: Help: VS.NET 2005 Help Broken? Pin
Office Lineman7-Mar-06 14:01
Office Lineman7-Mar-06 14:01 
GeneralRe: Help: VS.NET 2005 Help Broken? Pin
yellowine8-Mar-06 3:08
yellowine8-Mar-06 3:08 
QuestionFinding the user account name in XP Pin
Pacificat0r7-Mar-06 10:40
Pacificat0r7-Mar-06 10:40 
AnswerRe: Finding the user account name in XP Pin
Michael Dunn7-Mar-06 11:01
sitebuilderMichael Dunn7-Mar-06 11:01 
GeneralRe: Finding the user account name in XP Pin
Pacificat0r8-Mar-06 1:00
Pacificat0r8-Mar-06 1:00 
Questionwriting XML with IXMLDOMDocument2 with lf/cr ? Pin
Maximilien7-Mar-06 9:57
Maximilien7-Mar-06 9:57 
AnswerRe: writing XML with IXMLDOMDocument2 with lf/cr ? Pin
Michael Dunn7-Mar-06 11:03
sitebuilderMichael Dunn7-Mar-06 11:03 

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.