Click here to Skip to main content
15,917,859 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFileDialog Pin
KKR4-Nov-03 0:03
KKR4-Nov-03 0:03 
GeneralRe: CFileDialog Pin
BadJerry4-Nov-03 0:09
BadJerry4-Nov-03 0:09 
GeneralRe: CFileDialog Pin
KKR4-Nov-03 0:38
KKR4-Nov-03 0:38 
GeneralRe: CFileDialog Pin
BadJerry4-Nov-03 0:47
BadJerry4-Nov-03 0:47 
GeneralRe: CFileDialog Pin
FearlessBurner4-Nov-03 1:57
FearlessBurner4-Nov-03 1:57 
GeneralRe: CFileDialog Pin
Bo Hunter4-Nov-03 12:48
Bo Hunter4-Nov-03 12:48 
GeneralReading a jpeg file Pin
BlackRider3-Nov-03 23:28
BlackRider3-Nov-03 23:28 
GeneralRe: Reading a jpeg file Pin
BadJerry3-Nov-03 23:39
BadJerry3-Nov-03 23:39 
Hi,

If I remember correctly, you have posted this question not so long ago... So I am going to reply assuming you did the same thing!
You were storing your buffer in a CString. If you do this, the copy will stop when you hit the first byte with a value of 0. I guess the fourth character in your file is 0.
If you want to know how many characters you have read do this:
DWORD dwNumberOfBytesRead = imageFile.ReadHuge(buffer,1000000);
By the way, ReadHuge and Read do the same thing!

Good luck!

GeneralRe: Reading a jpeg file Pin
BlackRider4-Nov-03 0:43
BlackRider4-Nov-03 0:43 
GeneralRe: Reading a jpeg file Pin
BadJerry4-Nov-03 0:51
BadJerry4-Nov-03 0:51 
GeneralRe: Reading a jpeg file Pin
BlackRider4-Nov-03 1:35
BlackRider4-Nov-03 1:35 
Generalfeed Web Browser Control from string Pin
peterchen3-Nov-03 23:04
peterchen3-Nov-03 23:04 
GeneralRe: feed Web Browser Control from string Pin
BadJerry4-Nov-03 0:14
BadJerry4-Nov-03 0:14 
GeneralRe: feed Web Browser Control from string Pin
Jason Henderson4-Nov-03 3:35
Jason Henderson4-Nov-03 3:35 
GeneralCreating multiple Desktops Pin
fordge3-Nov-03 21:18
fordge3-Nov-03 21:18 
GeneralSwitching Between View in MDI Pin
Sreeramachandra3-Nov-03 20:47
Sreeramachandra3-Nov-03 20:47 
GeneralRe: Switching Between View in MDI Pin
souldog3-Nov-03 23:26
souldog3-Nov-03 23:26 
GeneralNested DLL Pin
IceBerG713-Nov-03 20:22
IceBerG713-Nov-03 20:22 
GeneralRe: Nested DLL Pin
Alexander M.,4-Nov-03 2:30
Alexander M.,4-Nov-03 2:30 
GeneralRe: Nested DLL Pin
IceBerG714-Nov-03 15:29
IceBerG714-Nov-03 15:29 
GeneralErasing background Pin
georgiek503-Nov-03 19:50
georgiek503-Nov-03 19:50 
GeneralRe: Erasing background Pin
Alexander M.,4-Nov-03 2:34
Alexander M.,4-Nov-03 2:34 
Questionhow to create an application like property page using dialog class but not propertypage Pin
w_yufeng3-Nov-03 18:58
w_yufeng3-Nov-03 18:58 
QuestionEvent spy? Pin
includeh103-Nov-03 18:56
includeh103-Nov-03 18:56 
Questionsocket question, is it possible in tech? Pin
includeh103-Nov-03 18:47
includeh103-Nov-03 18:47 

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.