Click here to Skip to main content
15,918,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaldebug error Pin
ranjjj3-Nov-03 0:25
ranjjj3-Nov-03 0:25 
GeneralRe: debug error Pin
Michael P Butler3-Nov-03 0:56
Michael P Butler3-Nov-03 0:56 
GeneralRe: debug error Pin
ranjjj3-Nov-03 4:02
ranjjj3-Nov-03 4:02 
GeneralRe: debug error Pin
David Crow3-Nov-03 4:36
David Crow3-Nov-03 4:36 
GeneralRe: debug error Pin
ranjjj3-Nov-03 17:06
ranjjj3-Nov-03 17:06 
GeneralRe: debug error Pin
David Crow4-Nov-03 2:31
David Crow4-Nov-03 2:31 
Generalmail server Pin
Ali7913-Nov-03 0:17
Ali7913-Nov-03 0:17 
GeneralRe: mail server Pin
melwyn3-Nov-03 1:44
melwyn3-Nov-03 1:44 
GeneralRe: mail server Pin
David Crow3-Nov-03 4:38
David Crow3-Nov-03 4:38 
GeneralCreate Service Pin
Boby.George2-Nov-03 23:17
professionalBoby.George2-Nov-03 23:17 
GeneralRe: Create Service Pin
Xiangyang Liu 刘向阳3-Nov-03 0:04
Xiangyang Liu 刘向阳3-Nov-03 0:04 
GeneralNot create a Service when logged as a local user Pin
Boby.George3-Nov-03 19:05
professionalBoby.George3-Nov-03 19:05 
GeneralRe: FTP OpenFile BUG? Pin
BlackRider2-Nov-03 22:24
BlackRider2-Nov-03 22:24 
QuestionHow to run application at win2k startup? Pin
golden06062-Nov-03 21:28
golden06062-Nov-03 21:28 
AnswerRe: How to run application at win2k startup? Pin
Michael P Butler2-Nov-03 21:53
Michael P Butler2-Nov-03 21:53 
AnswerRe: How to run application at win2k startup? Pin
Xiangyang Liu 刘向阳3-Nov-03 0:10
Xiangyang Liu 刘向阳3-Nov-03 0:10 
Generalfind window Pin
`Alt+F4`2-Nov-03 20:53
`Alt+F4`2-Nov-03 20:53 
GeneralRe: find window Pin
Mumiozol2-Nov-03 22:23
Mumiozol2-Nov-03 22:23 
GeneralRe: find window Pin
Antti Keskinen2-Nov-03 22:28
Antti Keskinen2-Nov-03 22:28 
GeneralRe: find window Pin
`Alt+F4`3-Nov-03 9:34
`Alt+F4`3-Nov-03 9:34 
GeneralRe: find window Pin
Antti Keskinen5-Nov-03 3:17
Antti Keskinen5-Nov-03 3:17 
Generaltemplate class Problem Pin
Mehran Ziadloo2-Nov-03 20:20
Mehran Ziadloo2-Nov-03 20:20 
GeneralRe: template class Problem Pin
Per Nilsson2-Nov-03 21:05
Per Nilsson2-Nov-03 21:05 
GeneralCFile::ReadHuge question Pin
BlackRider2-Nov-03 20:13
BlackRider2-Nov-03 20:13 
Hello everybody,
I'm reading a .jpg file, everything goes fine, readhuge reports reading the hole file but what I've got in the buffer is just 4 bytes. What is ReadHuge reading ?

code:

buffer = new char[1000000];
if (buffer == NULL)
{
cout<<"Not enough memory";
return;
}

try
{
imageFile.Open(fileTitle,CFile::modeRead,&e);
imageFile.ReadHuge(buffer,1000000);
imageFile.Close();

CString output = header + buffer;

imageFile.Open("msg01",CFile::modeCreate | CFile::modeWrite,&e);
imageFile.WriteHuge((LPCTSTR) output,output.GetLength());
imageFile.Close();

delete []buffer;


}
GeneralRe: CFile::ReadHuge question Pin
Steve S3-Nov-03 2:50
Steve S3-Nov-03 2:50 

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.