Click here to Skip to main content
15,889,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to display VC++ .NET style MessageBox using Visual C++ 6 Pin
bin892216-Dec-03 7:45
bin892216-Dec-03 7:45 
Generalmultiple thread problem... Pin
Anonymous16-Dec-03 6:44
Anonymous16-Dec-03 6:44 
GeneralRe: multiple thread problem... Pin
John M. Drescher16-Dec-03 7:53
John M. Drescher16-Dec-03 7:53 
Generaloverruling new/delete, malloc/free Pin
Patje16-Dec-03 6:07
Patje16-Dec-03 6:07 
GeneralRe: overruling new/delete, malloc/free Pin
Alexander M.,16-Dec-03 9:05
Alexander M.,16-Dec-03 9:05 
QuestionHow to make a cab file with safe MFC control?? Pin
aglcic16-Dec-03 5:50
aglcic16-Dec-03 5:50 
AnswerRe: How to make a cab file with safe MFC control?? Pin
Roger Stewart16-Dec-03 14:37
professionalRoger Stewart16-Dec-03 14:37 
GeneralHelp with serialization Pin
Juan Carlos Cobas16-Dec-03 5:16
Juan Carlos Cobas16-Dec-03 5:16 
Hi,

I have a full server/container MFC app. I'm trying to serialize the embeded OLE objects in an independent file (e.g. I don't want my document file to save the ole objects, I want them in a separate one). This is what I'm doing:

//SAVE OLE OBJECTS
CFile fil( "test.ole", CFile::modeWrite | CFile::modeCreate );
CArchive ar( &fil, CArchive::store );
COleServerDoc::Serialize(ar);

(...)

//LOAD OLE OBJECTS
TRY
{
CFile fil( "test.ole", CFile::modeRead );
CArchive ar( &fil, CArchive::load );
COleServerDoc::Serialize(ar);
}
CATCH( CFileException, e )
{
(...)
}
END_CATCH


It seems that the file was properly saved, but when I try to load it, I get a debug assertion when COleServerDoc::Serialize(ar) is called.

What am I doing wrong?

Thanks,

GeneralRe: Help with serialization Pin
Juan Carlos Cobas16-Dec-03 5:57
Juan Carlos Cobas16-Dec-03 5:57 
GeneralHTTP Post Pin
si_6916-Dec-03 4:58
si_6916-Dec-03 4:58 
GeneralExperts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 4:37
oren frenkel16-Dec-03 4:37 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
Felix Gartsman16-Dec-03 5:31
Felix Gartsman16-Dec-03 5:31 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 5:44
oren frenkel16-Dec-03 5:44 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
Felix Gartsman16-Dec-03 7:39
Felix Gartsman16-Dec-03 7:39 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 22:40
oren frenkel16-Dec-03 22:40 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
John M. Drescher16-Dec-03 7:56
John M. Drescher16-Dec-03 7:56 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 22:38
oren frenkel16-Dec-03 22:38 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
John M. Drescher17-Dec-03 4:11
John M. Drescher17-Dec-03 4:11 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel17-Dec-03 4:18
oren frenkel17-Dec-03 4:18 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
John M. Drescher17-Dec-03 4:27
John M. Drescher17-Dec-03 4:27 
GeneralStarter Pin
neo2k316-Dec-03 3:58
neo2k316-Dec-03 3:58 
GeneralRe: Starter Pin
valikac16-Dec-03 5:11
valikac16-Dec-03 5:11 
GeneralRe: Starter Pin
Anonymous17-Dec-03 3:26
Anonymous17-Dec-03 3:26 
GeneralRe: Starter Pin
LittleYellowBird16-Dec-03 5:16
LittleYellowBird16-Dec-03 5:16 
GeneralRe: Starter Pin
Roger Wright16-Dec-03 5:23
professionalRoger Wright16-Dec-03 5:23 

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.