Click here to Skip to main content
16,006,818 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSingle Instance Pin
Sameer Maggon12-Apr-02 1:02
Sameer Maggon12-Apr-02 1:02 
GeneralRe: Single Instance Pin
Hans Ruck12-Apr-02 1:06
Hans Ruck12-Apr-02 1:06 
GeneralRe: Single Instance Pin
12-Apr-02 1:32
suss12-Apr-02 1:32 
GeneralRe: Single Instance Pin
Alexandru Savescu12-Apr-02 4:48
Alexandru Savescu12-Apr-02 4:48 
Questionwhy these code can't work well? Pin
white jungle12-Apr-02 0:27
white jungle12-Apr-02 0:27 
AnswerRe: why these code can't work well? Pin
Roger Allen12-Apr-02 1:20
Roger Allen12-Apr-02 1:20 
GeneralRe: why these code can't work well? Pin
white jungle12-Apr-02 2:04
white jungle12-Apr-02 2:04 
GeneralRe: why these code can't work well? Pin
Roger Allen12-Apr-02 2:56
Roger Allen12-Apr-02 2:56 
OK, I had no experience with CMemFile before. I was comparing your code to what I have seen in the past for serialization. After having read the notes on CMemFile in MSDN it looks like what you are doing is correct. The only thing I can think of is that you may not be accessing the allocated buffer correctly, or you need to flush the archive to commit the changes to the buffer.

Just a couple of possible reasons.


You may also need to close the archive

ar.Close()

before accessing the buffer.


Roger Allen
Sonork 100.10016

yet to be identified being from the planet Paltinmoriumbanfrettybooter
AnswerRe: why these code can't work well? Pin
Ravi Bhavnani12-Apr-02 2:30
professionalRavi Bhavnani12-Apr-02 2:30 
Generaldetecting an active internet connection... Pin
l a u r e n12-Apr-02 0:19
l a u r e n12-Apr-02 0:19 
GeneralRe: detecting an active internet connection... Pin
12-Apr-02 0:44
suss12-Apr-02 0:44 
GeneralRe: detecting an active internet connection... Pin
l a u r e n12-Apr-02 1:27
l a u r e n12-Apr-02 1:27 
GeneralRe: detecting an active internet connection... Pin
James R. Twine12-Apr-02 9:43
James R. Twine12-Apr-02 9:43 
QuestionPress any Key to Continue?? Pin
12-Apr-02 0:01
suss12-Apr-02 0:01 
AnswerRe: Press any Key to Continue?? Pin
Brian Delahunty11-Apr-02 23:58
Brian Delahunty11-Apr-02 23:58 
GeneralRe: Press any Key to Continue?? Pin
12-Apr-02 0:20
suss12-Apr-02 0:20 
GeneralRe: Press any Key to Continue?? Pin
Christian Graus12-Apr-02 0:36
protectorChristian Graus12-Apr-02 0:36 
GeneralModify file dates Pin
11-Apr-02 23:56
suss11-Apr-02 23:56 
GeneralRe: Modify file dates Pin
Brian Delahunty11-Apr-02 23:59
Brian Delahunty11-Apr-02 23:59 
GeneralRe: Modify file dates Pin
12-Apr-02 0:35
suss12-Apr-02 0:35 
GeneralRe: Modify file dates Pin
Mazdak12-Apr-02 1:13
Mazdak12-Apr-02 1:13 
GeneralRe: Modify file dates Pin
James R. Twine12-Apr-02 9:45
James R. Twine12-Apr-02 9:45 
QuestionHow could i put a modeless behind the parent? Pin
Hans Ruck11-Apr-02 23:54
Hans Ruck11-Apr-02 23:54 
AnswerRe: How could i put a modeless behind the parent? Pin
James R. Twine12-Apr-02 9:48
James R. Twine12-Apr-02 9:48 
GeneralRe: How could i put a modeless behind the parent? Pin
Hans Ruck14-Apr-02 21:19
Hans Ruck14-Apr-02 21:19 

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.