Click here to Skip to main content
15,905,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionplease help me! Pin
dSolariuM19-Jan-06 4:23
dSolariuM19-Jan-06 4:23 
AnswerRe: please help me! Pin
toxcct19-Jan-06 4:44
toxcct19-Jan-06 4:44 
AnswerRe: please help me! Pin
Prakash Nadar19-Jan-06 5:07
Prakash Nadar19-Jan-06 5:07 
AnswerRe: please help me! Pin
stephen.hazel19-Jan-06 9:43
stephen.hazel19-Jan-06 9:43 
QuestionHow to read .Doc, pdf, .xls etc file? Pin
Amarelia19-Jan-06 3:57
Amarelia19-Jan-06 3:57 
AnswerRe: How to read .Doc, pdf, .xls etc file? Pin
toxcct19-Jan-06 4:08
toxcct19-Jan-06 4:08 
QuestionRe: How to read .Doc, pdf, .xls etc file? Pin
David Crow19-Jan-06 4:16
David Crow19-Jan-06 4:16 
AnswerRe: How to read .Doc, pdf, .xls etc file? Pin
Amarelia19-Jan-06 19:33
Amarelia19-Jan-06 19:33 
Hi,
Thanks for the reply,

I do it the following way...
CStdioFile fileToRead;
char * StringBlock = new char[64000];

fileToRead.Open(sCurrPath, CFile::modeRead | CFile::typeBinary, &feError);
nBytesRead = fileToRead.Read((unsigned short *)StringBlock, 60000);

The value of nBytesRead = 60000 after the last statement executes, but the StringBlock contains only few junk characters only. May be it encounters NULL or something like that which truncates it to only few chars. According to this the function reads the file correctly but the problem is in storing the data. I want to read maximum data possible at one go for the sake of my app's speed .

Please give appropriate solution.

Best regards and Thanks,


Mahesh
GeneralRe: How to read .Doc, pdf, .xls etc file? Pin
kakan19-Jan-06 20:00
professionalkakan19-Jan-06 20:00 
AnswerRe: How to read .Doc, pdf, .xls etc file? Pin
grigsoft19-Jan-06 4:22
grigsoft19-Jan-06 4:22 
AnswerRe: How to read .Doc, pdf, .xls etc file? Pin
Bob Flynn19-Jan-06 6:21
Bob Flynn19-Jan-06 6:21 
AnswerRe: How to read .Doc, pdf, .xls etc file? Pin
FarPointer19-Jan-06 6:32
FarPointer19-Jan-06 6:32 
QuestionCheck If Mouse Button Down Pin
ZaebanB19-Jan-06 3:27
ZaebanB19-Jan-06 3:27 
QuestionRe: Check If Mouse Button Down Pin
David Crow19-Jan-06 3:33
David Crow19-Jan-06 3:33 
AnswerRe: Check If Mouse Button Down Pin
ZaebanB19-Jan-06 3:37
ZaebanB19-Jan-06 3:37 
AnswerRe: Check If Mouse Button Down Pin
Stephen Hewitt19-Jan-06 3:37
Stephen Hewitt19-Jan-06 3:37 
GeneralRe: Check If Mouse Button Down Pin
ZaebanB19-Jan-06 3:45
ZaebanB19-Jan-06 3:45 
QuestionVS 2005 Class View redrawing Pin
BambooMoon19-Jan-06 3:13
BambooMoon19-Jan-06 3:13 
QuestionWant an MFC application to start just aftr booting Pin
Aryan S19-Jan-06 3:02
Aryan S19-Jan-06 3:02 
AnswerRe: Want an MFC application to start just aftr booting Pin
toxcct19-Jan-06 3:10
toxcct19-Jan-06 3:10 
GeneralRe: Want an MFC application to start just aftr booting Pin
Aryan S19-Jan-06 3:12
Aryan S19-Jan-06 3:12 
GeneralRe: Want an MFC application to start just aftr booting Pin
toxcct19-Jan-06 3:12
toxcct19-Jan-06 3:12 
GeneralRe: Want an MFC application to start just aftr booting Pin
Prakash Nadar19-Jan-06 5:03
Prakash Nadar19-Jan-06 5:03 
AnswerRe: Want an MFC application to start just aftr booting Pin
Maximilien19-Jan-06 5:19
Maximilien19-Jan-06 5:19 
AnswerRe: Want an MFC application to start just aftr booting Pin
Shraddhan22-Jan-06 18:11
Shraddhan22-Jan-06 18:11 

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.