Click here to Skip to main content
15,562,256 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Splitting Up Numbers Pin
Dr. Emmett Brown27-Aug-08 13:08
Dr. Emmett Brown27-Aug-08 13:08 
GeneralRe: Splitting Up Numbers Pin
Robert.C.Cartaino27-Aug-08 13:37
Robert.C.Cartaino27-Aug-08 13:37 
GeneralRe: Splitting Up Numbers Pin
David Crow28-Aug-08 5:04
David Crow28-Aug-08 5:04 
GeneralRe: Splitting Up Numbers Pin
Diagathon29-Aug-08 9:12
Diagathon29-Aug-08 9:12 
QuestionSmall usability issue with MFC Splitter window/ windows explorer style application Pin
Sternocera27-Aug-08 12:27
Sternocera27-Aug-08 12:27 
AnswerRe: Small usability issue with MFC Splitter window/ windows explorer style application Pin
led mike27-Aug-08 12:44
led mike27-Aug-08 12:44 
GeneralRe: Small usability issue with MFC Splitter window/ windows explorer style application Pin
Sternocera27-Aug-08 12:51
Sternocera27-Aug-08 12:51 
QuestionHow do I know the size of the char for ReadFile before reading the actual file. [modified] Pin
luisgrimaldo27-Aug-08 12:17
luisgrimaldo27-Aug-08 12:17 
I have this:
HANDLE hFile;
DWORD wmWritten;
char code[1024];
hFile = CreateFile(filename,GENERIC_READ|GENERIC_WRITE,FILE_SHARE_READ,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);
ReadFile(hFile,code,1024,&wmWritten,NULL);
CloseHandle(hFile);

but i always get a 1024 char file, i mean if the file has more than 1024 chars then it will just show up the first 1024 of them. What should I do for getting always the exact number of chars the file will have. I mean I want a way to get the number of chars instead of just typing 50000 instead of 1024 because if i do that it ll show up iiiiiiiiiiiiiii or something like that for completing the 50000 chars if the value is lower than that.
thanks.

modified on Wednesday, August 27, 2008 5:24 PM

AnswerRe: How do I know the size of the char for ReadFile before reading the actual file. Pin
led mike27-Aug-08 12:47
led mike27-Aug-08 12:47 
GeneralRe: How do I know the size of the char for ReadFile before reading the actual file. Pin
luisgrimaldo27-Aug-08 13:04
luisgrimaldo27-Aug-08 13:04 
GeneralRe: How do I know the size of the char for ReadFile before reading the actual file. Pin
David Crow28-Aug-08 5:06
David Crow28-Aug-08 5:06 
QuestionNeural Network Function Estimation Pin
Ehsan Baghaki27-Aug-08 11:07
Ehsan Baghaki27-Aug-08 11:07 
QuestionSetting menu item disabled state problem Pin
nick0122327-Aug-08 9:12
nick0122327-Aug-08 9:12 
QuestionRe: Setting menu item disabled state problem Pin
Mark Salsbery27-Aug-08 9:54
Mark Salsbery27-Aug-08 9:54 
AnswerRe: Setting menu item disabled state problem Pin
nick0122327-Aug-08 10:06
nick0122327-Aug-08 10:06 
GeneralRe: Setting menu item disabled state problem Pin
Mark Salsbery27-Aug-08 10:13
Mark Salsbery27-Aug-08 10:13 
GeneralRe: Setting menu item disabled state problem Pin
nick0122327-Aug-08 10:40
nick0122327-Aug-08 10:40 
AnswerRe: Setting menu item disabled state problem Pin
led mike27-Aug-08 10:09
led mike27-Aug-08 10:09 
GeneralRe: Setting menu item disabled state problem Pin
Mark Salsbery27-Aug-08 10:11
Mark Salsbery27-Aug-08 10:11 
GeneralRe: Setting menu item disabled state problem Pin
led mike27-Aug-08 10:31
led mike27-Aug-08 10:31 
GeneralRe: Setting menu item disabled state problem Pin
Mark Salsbery27-Aug-08 10:37
Mark Salsbery27-Aug-08 10:37 
QuestionCAVI "bitmap" colors - reserved value question Pin
Vaclav_27-Aug-08 9:00
Vaclav_27-Aug-08 9:00 
AnswerRe: CAVI "bitmap" colors - reserved value question Pin
Mark Salsbery27-Aug-08 9:05
Mark Salsbery27-Aug-08 9:05 
GeneralRe: CAVI "bitmap" colors - reserved value question Pin
Vaclav_27-Aug-08 9:22
Vaclav_27-Aug-08 9:22 
GeneralRe: CAVI "bitmap" colors - reserved value question Pin
Mark Salsbery27-Aug-08 9:49
Mark Salsbery27-Aug-08 9:49 

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.