Click here to Skip to main content
15,891,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: this code is driving me crazy! :(( Pin
Shog917-Feb-02 13:59
sitebuilderShog917-Feb-02 13:59 
GeneralRe: this code is driving me crazy! :(( Pin
17-Feb-02 14:26
suss17-Feb-02 14:26 
GeneralRe: this code is driving me crazy! :(( Pin
Christian Graus17-Feb-02 15:26
protectorChristian Graus17-Feb-02 15:26 
GeneralRe: this code is driving me crazy! :(( Pin
17-Feb-02 15:59
suss17-Feb-02 15:59 
QuestionHow can I programmatically click the next button on yahoo? Pin
DanYELL17-Feb-02 12:39
DanYELL17-Feb-02 12:39 
AnswerRe: How can I programmatically click the next button on yahoo? Pin
Simon Walton17-Feb-02 12:54
Simon Walton17-Feb-02 12:54 
AnswerRe: How can I programmatically click the next button on yahoo? Pin
17-Feb-02 13:00
suss17-Feb-02 13:00 
GeneralRe CTrayNotifyIcon Pin
17-Feb-02 11:56
suss17-Feb-02 11:56 
GeneralRe: Re CTrayNotifyIcon Pin
Nish Nishant17-Feb-02 13:38
sitebuilderNish Nishant17-Feb-02 13:38 
GeneralRe: Re CTrayNotifyIcon Pin
Jon Hulatt17-Feb-02 22:04
Jon Hulatt17-Feb-02 22:04 
GeneralComboBox width Pin
Stephane Routelous17-Feb-02 11:43
Stephane Routelous17-Feb-02 11:43 
GeneralRe: ComboBox width Pin
Shog917-Feb-02 13:22
sitebuilderShog917-Feb-02 13:22 
GeneralRe: ComboBox width Pin
Jon Hulatt17-Feb-02 22:05
Jon Hulatt17-Feb-02 22:05 
GeneralYour op. about .Net Pin
blink4me17-Feb-02 11:16
blink4me17-Feb-02 11:16 
GeneralRe: Your op. about .Net Pin
Christian Graus17-Feb-02 12:22
protectorChristian Graus17-Feb-02 12:22 
QuestionSo what does the .NET Framework do??? Pin
Nnamdi Onyeyiri17-Feb-02 10:36
Nnamdi Onyeyiri17-Feb-02 10:36 
AnswerRe: So what does the .NET Framework do??? Pin
moliate17-Feb-02 11:51
moliate17-Feb-02 11:51 
GeneralRe: So what does the .NET Framework do??? Pin
Simon Walton17-Feb-02 12:11
Simon Walton17-Feb-02 12:11 
GeneralRe: So what does the .NET Framework do??? Pin
Tim Smith17-Feb-02 13:07
Tim Smith17-Feb-02 13:07 
AnswerRe: So what does the .NET Framework do??? Pin
Nish Nishant17-Feb-02 13:44
sitebuilderNish Nishant17-Feb-02 13:44 
Questionwhats wrong here? Pin
Steve L.17-Feb-02 8:54
Steve L.17-Feb-02 8:54 
AnswerRe: whats wrong here? Pin
Kashif Manzoor17-Feb-02 9:01
Kashif Manzoor17-Feb-02 9:01 
Rafi,

This error occurs for two reasons:

(1) if you are sacing the file differently than loading it e.g.:
if (ar.IsStoring())
{ // storing code
ar << someVariable;
}
else
{
// loading code, is trying to read a variable that was not saved.
// So obviously you are trying to read past the file and
ar >> someVariable>>anotherVariable;
}

(2) if you are readin/loading a file that was saved by some other program then there is a strong chance that such an error will occurr (again this is related to reason (1)

(3) If you save the data using Serialize(&ar), and load/read the data using ar>> operator then you will again get the mentioned error.

I think your problem is related to category (1). Make sure you are reading exactly the same (and also in the same order) that you wrote.

Normally I simply copy the saving code in the loading block and simply change the << to >>, to avoid any mistake.

-cheers,
kashif manzoor

peace to all
AnswerRe: whats wrong here? Pin
Dominik Reichl17-Feb-02 9:27
Dominik Reichl17-Feb-02 9:27 
GeneralRe: whats wrong here? Pin
Steve L.17-Feb-02 9:39
Steve L.17-Feb-02 9:39 
QuestionHow can one make a pointer to a constant? Pin
17-Feb-02 8:34
suss17-Feb-02 8:34 

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.