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

C / C++ / MFC

 
AnswerRe: TaskBar Icon Problem??????????? Pin
ThatsAlok16-Apr-05 1:27
ThatsAlok16-Apr-05 1:27 
GeneralRe: TaskBar Icon Problem??????????? Pin
ddmcr16-Apr-05 1:55
ddmcr16-Apr-05 1:55 
GeneralRe: TaskBar Icon Problem??????????? Pin
ThatsAlok16-Apr-05 2:29
ThatsAlok16-Apr-05 2:29 
GeneralRe: TaskBar Icon Problem??????????? Pin
ThatsAlok17-Apr-05 19:08
ThatsAlok17-Apr-05 19:08 
AnswerRe: TaskBar Icon Problem??????????? Pin
Alexander M.,16-Apr-05 2:40
Alexander M.,16-Apr-05 2:40 
GeneralRe: TaskBar Icon Problem??????????? Pin
ddmcr16-Apr-05 3:38
ddmcr16-Apr-05 3:38 
GeneralRe: TaskBar Icon Problem??????????? Pin
Alexander M.,16-Apr-05 9:54
Alexander M.,16-Apr-05 9:54 
GeneralNeed help with fread & fwrite Pin
Lynsen16-Apr-05 0:24
Lynsen16-Apr-05 0:24 
A simple Copy button:

void CTestDlg::OnCopyButton()
{
// TODO: Add your control notification handler code here
FILE *fin = fopen(m_InfileStatic, "r");
if ( fin )
{
FILE *fout = fopen(m_OutfileStatic, "w");
if ( fout )
{
char buf[2048];
while ( fread(buf,2048,1,fin) ){
fwrite(buf,2048,1,fout);
}
fclose(fout);
MessageBox("Done ",",NULL,MB_OK|MB_ICONINFORMATION);
}
fclose(fin);
}
}

input is always multiple of 2 KB. after several loops fread returns 0 (if input is 100 KB it should make 50 loops) producing only 2-8 KB output.
Your explanation would be much appreciated. Thanks.

Lynsen
GeneralRe: Need help with fread & fwrite Pin
namaskaaram16-Apr-05 0:36
namaskaaram16-Apr-05 0:36 
GeneralRe: Need help with fread & fwrite Pin
Lynsen16-Apr-05 0:43
Lynsen16-Apr-05 0:43 
GeneralRe: Need help with fread & fwrite Pin
namaskaaram16-Apr-05 0:45
namaskaaram16-Apr-05 0:45 
GeneralRe: Need help with fread & fwrite Pin
David Crow18-Apr-05 5:19
David Crow18-Apr-05 5:19 
QuestionHow to create global variable in atl project Pin
Anonymous16-Apr-05 0:10
Anonymous16-Apr-05 0:10 
AnswerRe: How to create global variable in atl project Pin
ThatsAlok16-Apr-05 0:30
ThatsAlok16-Apr-05 0:30 
GeneralRe: How to create global variable in atl project Pin
Anonymous16-Apr-05 0:52
Anonymous16-Apr-05 0:52 
QuestionHow to create object of ATL class Pin
Anonymous15-Apr-05 23:41
Anonymous15-Apr-05 23:41 
AnswerRe: How to create object of ATL class Pin
ThatsAlok16-Apr-05 0:14
ThatsAlok16-Apr-05 0:14 
Generalproblem in setting value in component Pin
Anonymous15-Apr-05 23:14
Anonymous15-Apr-05 23:14 
Generalwherez my mistake!! Pin
Member 188014615-Apr-05 22:36
Member 188014615-Apr-05 22:36 
GeneralRe: wherez my mistake!! Pin
ThatsAlok15-Apr-05 23:00
ThatsAlok15-Apr-05 23:00 
GeneralRe: wherez my mistake!! Pin
Member 188014615-Apr-05 23:04
Member 188014615-Apr-05 23:04 
GeneralRe: wherez my mistake!! Pin
ThatsAlok15-Apr-05 23:18
ThatsAlok15-Apr-05 23:18 
GeneralRe: wherez my mistake!! Pin
Member 188014615-Apr-05 23:28
Member 188014615-Apr-05 23:28 
GeneralRe: wherez my mistake!! Pin
ThatsAlok20-Apr-05 19:58
ThatsAlok20-Apr-05 19:58 
GeneralGDI+ graphics path casting Pin
mrCrisp15-Apr-05 21:53
mrCrisp15-Apr-05 21:53 

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.