Click here to Skip to main content
16,011,170 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalthis sample doesnf help me! Pin
24-Jul-01 10:55
suss24-Jul-01 10:55 
GeneralRe: this sample doesnf help me! Pin
Carlos Antollini24-Jul-01 11:10
Carlos Antollini24-Jul-01 11:10 
QuestionID?? Pin
24-Jul-01 5:12
suss24-Jul-01 5:12 
AnswerRe: ID?? Pin
Christian Graus24-Jul-01 13:06
protectorChristian Graus24-Jul-01 13:06 
QuestionSerialize : How can I know if the loading from the file success ??? Pin
24-Jul-01 5:04
suss24-Jul-01 5:04 
AnswerRe: Serialize : How can I know if the loading from the file success ??? Pin
CMFC6.0VS.NETUser24-Jul-01 5:20
CMFC6.0VS.NETUser24-Jul-01 5:20 
GeneralI think you dont understand me. Pin
24-Jul-01 10:23
suss24-Jul-01 10:23 
GeneralRe: I think you dont understand me. Pin
CMFC6.0VS.NETUser27-Jul-01 6:10
CMFC6.0VS.NETUser27-Jul-01 6:10 
Sorry, In your if/else bodies you need to check the for the end of the file. Try using a counter, and the CFile::GetLength() if CArchive derives from CFile(I don't rememeber) or if not CFile::GetStatis(/*FileName as param*/) which fills the CFileStatis(The Name may be wrong so check MSDN) obj and the CFileStatis obj will have a length memeber(check MSDN for name). You need to use if statements to test the counter to see if counter is smaller than the file length. When you read the Archive add the amount you just read from the Archive to the counter(this is hard to do and I can explain it here maybe later in this thread if you like).

Hope this helps...

Real World Coding:
     POP& BuyAPop(Money ADollar){...};
GeneralRe: I think you dont understand me. Pin
Matt Gullett27-Jul-01 6:30
Matt Gullett27-Jul-01 6:30 
GeneralHow can you brush your text in yellow ?? Pin
24-Jul-01 10:25
suss24-Jul-01 10:25 
GeneralRe: How can you brush your text in yellow ?? Pin
Carlos Antollini27-Jul-01 6:26
Carlos Antollini27-Jul-01 6:26 
GeneralRe: How can you brush your text in yellow ?? Pin
CMFC6.0VS.NETUser27-Jul-01 6:27
CMFC6.0VS.NETUser27-Jul-01 6:27 
GeneralFilling an HBITMAP with an HICON Pin
24-Jul-01 4:40
suss24-Jul-01 4:40 
GeneralRe: Filling an HBITMAP with an HICON Pin
Tomasz Sowinski24-Jul-01 5:03
Tomasz Sowinski24-Jul-01 5:03 
Generalbit data types Pin
Johnny Starr24-Jul-01 4:28
Johnny Starr24-Jul-01 4:28 
GeneralRe: bit data types Pin
Tomasz Sowinski24-Jul-01 4:34
Tomasz Sowinski24-Jul-01 4:34 
GeneralRe: bit data types Pin
Johnny Starr24-Jul-01 4:35
Johnny Starr24-Jul-01 4:35 
GeneralCButton Text Color change Pin
Gerry24-Jul-01 3:53
Gerry24-Jul-01 3:53 
Generala quastion Pin
24-Jul-01 3:45
suss24-Jul-01 3:45 
GeneralRe: a quastion Pin
Tomasz Sowinski24-Jul-01 3:52
Tomasz Sowinski24-Jul-01 3:52 
GeneralMaking A CFont Go Bold Pin
AJ12324-Jul-01 3:26
AJ12324-Jul-01 3:26 
GeneralRe: Making A CFont Go Bold Pin
Tomasz Sowinski24-Jul-01 3:40
Tomasz Sowinski24-Jul-01 3:40 
GeneralRe: Making A CFont Go Bold Pin
AJ12324-Jul-01 6:00
AJ12324-Jul-01 6:00 
GeneralRe: Making A CFont Go Bold Pin
fantastic_mr_fox24-Jul-01 6:26
fantastic_mr_fox24-Jul-01 6:26 
GeneralSQLConfigDataSource() & string problem Pin
Derek Price24-Jul-01 3:11
Derek Price24-Jul-01 3: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.