Click here to Skip to main content
15,912,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I get a controls HWND ? Pin
26-May-01 10:47
suss26-May-01 10:47 
AnswerRe: How can I get a controls HWND ? Pin
Waleed Eissa26-May-01 11:11
Waleed Eissa26-May-01 11:11 
AnswerThanks for all ! Pin
27-May-01 4:54
suss27-May-01 4:54 
GeneralPrepare image before Bitblt Pin
Starodubtsev Sergey26-May-01 7:00
Starodubtsev Sergey26-May-01 7:00 
GeneralRe: Prepare image before Bitblt Pin
Christian Graus26-May-01 22:13
protectorChristian Graus26-May-01 22:13 
GeneralCEditView Pin
Starodubtsev Sergey26-May-01 6:05
Starodubtsev Sergey26-May-01 6:05 
GeneralRe: CEditView Pin
27-May-01 7:40
suss27-May-01 7:40 
GeneralReading data from CFile Pin
26-May-01 2:52
suss26-May-01 2:52 
We've got a problem:

We want to load data from a CFile object:

CFile m_ArrFile;
m_ArrFile.Open(m_strArrFile, CFile::modeRead);
char tmp[10];
[...]
UINT bytes = 0;
for (UINT x = 0; x < elemX; x++)
{
bytes += m_ArrFile.Read(&tmp, sizeof(int));
}

No matter how large the file is, the variable "byte" contains only 712 bytes after the loop. Why is it like that and what can we do against it? We use Windows ME.

Gregor & Dominik
GeneralRe: Reading data from CFile Pin
26-May-01 3:46
suss26-May-01 3:46 
GeneralRe: Reading data from CFile Pin
26-May-01 5:15
suss26-May-01 5:15 
GeneralRe: Reading data from CFile Pin
27-May-01 1:02
suss27-May-01 1:02 
GeneralRe: Reading data from CFile Pin
27-May-01 7:48
suss27-May-01 7:48 
GeneralWinNT service and system shutdown Pin
"Le Phuc Nguyen Tuan"25-May-01 19:18
"Le Phuc Nguyen Tuan"25-May-01 19:18 
GeneralRe: WinNT service and system shutdown Pin
Ghazi H. Wadi28-May-01 7:19
Ghazi H. Wadi28-May-01 7:19 
GeneralSource code ... Pin
Hadi Rezaee25-May-01 18:43
Hadi Rezaee25-May-01 18:43 
GeneralRe: Source code ... Pin
Christian Graus26-May-01 22:25
protectorChristian Graus26-May-01 22:25 
GeneralRe: Source code ... Pin
Hadi Rezaee27-May-01 1:16
Hadi Rezaee27-May-01 1:16 
GeneralRe: Source code ... Pin
Christian Graus27-May-01 2:38
protectorChristian Graus27-May-01 2:38 
GeneralRe: Source code ... Pin
Hadi Rezaee27-May-01 4:04
Hadi Rezaee27-May-01 4:04 
GeneralRe: Source code ... Pin
Christian Graus27-May-01 12:00
protectorChristian Graus27-May-01 12:00 
GeneralRe: Source code ... Pin
Hadi Rezaee27-May-01 17:47
Hadi Rezaee27-May-01 17:47 
GeneralRe: Source code ... Pin
Christian Graus27-May-01 18:34
protectorChristian Graus27-May-01 18:34 
QuestionWhich media API to use? Pin
Jonathan Gilligan25-May-01 11:44
Jonathan Gilligan25-May-01 11:44 
AnswerRe: Which media API to use? Pin
l a u r e n26-May-01 0:14
l a u r e n26-May-01 0:14 
GeneralWTL Question Pin
25-May-01 10:43
suss25-May-01 10:43 

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.