Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Mute button Pin
_AnsHUMAN_ 12-Nov-07 20:52
_AnsHUMAN_ 12-Nov-07 20:52 
AnswerRe: Mute button Pin
Johpoke12-Nov-07 21:14
Johpoke12-Nov-07 21:14 
GeneralRe: Mute button Pin
jhwurmbach13-Nov-07 2:02
jhwurmbach13-Nov-07 2:02 
QuestionHow to find that I've select the correct file. Pin
CodingLover12-Nov-07 19:26
CodingLover12-Nov-07 19:26 
AnswerRe: How to find that I've select the correct file. Pin
Malli_S12-Nov-07 21:15
Malli_S12-Nov-07 21:15 
AnswerRe: How to find that I've select the correct file. Pin
chandu00412-Nov-07 21:53
chandu00412-Nov-07 21:53 
NewsRe: How to find that I've select the correct file. Pin
CodingLover13-Nov-07 16:55
CodingLover13-Nov-07 16:55 
AnswerRe: How to find that I've select the correct file. Pin
Nelek13-Nov-07 21:53
protectorNelek13-Nov-07 21:53 
If you use CArchive::Serialize it will check if the structure of the data are correct to the project it self.

I.E. you code this:

if (ar.IsStoring ())
{
   ar << myObject.myInt;
   ar << myObject.myDouble;
   ar << myArray[x].myString;
}


and you save a file with those datas, if you afterwards try to read them and you put it in other way, like:

else
{
   ar << myArray[x].myString;
   ar << myObject.myDouble;
   ar << myObject.myInt;
}


the programm will complain and say that the data are not readable. So there is an error coding, or the file is not from your application. Is very difficult to find a "fake" file with the same structure of data as the files from your application (probability will be inverse proportional to the ammount of data saved in your file).

With the CFile you dont have that support, so you should use the solutions above.

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

Wink | ;)

GeneralRe: How to find that I've select the correct file. Pin
CodingLover14-Nov-07 16:27
CodingLover14-Nov-07 16:27 
Questionhi i have problem with displaying controls Pin
chethu66512-Nov-07 19:15
chethu66512-Nov-07 19:15 
QuestionProblem printing c-string Pin
SamRauch0112-Nov-07 18:57
SamRauch0112-Nov-07 18:57 
AnswerRe: Problem printing c-string Pin
Malli_S12-Nov-07 21:23
Malli_S12-Nov-07 21:23 
AnswerRe: Problem printing c-string Pin
David Crow13-Nov-07 3:40
David Crow13-Nov-07 3:40 
Questionthread pool Pin
Jhony george12-Nov-07 18:45
Jhony george12-Nov-07 18:45 
AnswerRe: thread pool Pin
Stephen Hewitt12-Nov-07 18:59
Stephen Hewitt12-Nov-07 18:59 
QuestionRe: thread pool Pin
Jhony george12-Nov-07 19:27
Jhony george12-Nov-07 19:27 
AnswerRe: thread pool Pin
Mark Salsbery13-Nov-07 9:01
Mark Salsbery13-Nov-07 9:01 
AnswerRe: thread pool Pin
Rajasekharan Vengalil12-Nov-07 19:15
Rajasekharan Vengalil12-Nov-07 19:15 
QuestionParse excel file Pin
Maynka12-Nov-07 18:45
Maynka12-Nov-07 18:45 
AnswerRe: Parse excel file Pin
Rajasekharan Vengalil12-Nov-07 19:20
Rajasekharan Vengalil12-Nov-07 19:20 
QuestionSolution For Painting multiple images? Pin
Richard Blythe12-Nov-07 17:41
Richard Blythe12-Nov-07 17:41 
AnswerRe: Solution For Painting multiple images? Pin
Llasus12-Nov-07 20:58
Llasus12-Nov-07 20:58 
QuestionHow to mount any file? Pin
bhaskar jatav12-Nov-07 17:37
bhaskar jatav12-Nov-07 17:37 
QuestionADO n DataGrid Pin
SnaKeBeD12-Nov-07 17:33
SnaKeBeD12-Nov-07 17:33 
AnswerRe: ADO n DataGrid Pin
followait12-Nov-07 17:44
followait12-Nov-07 17:44 

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.