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

C / C++ / MFC

 
AnswerRe: Using custom resources? Pin
Chris Losinger25-Jun-02 13:13
professionalChris Losinger25-Jun-02 13:13 
GeneralDirectDraw Surface Flipping Pin
Alan Chambers25-Jun-02 11:29
Alan Chambers25-Jun-02 11:29 
GeneralRe: DirectDraw Surface Flipping Pin
Jason Henderson25-Jun-02 16:51
Jason Henderson25-Jun-02 16:51 
GeneralRe: DirectDraw Surface Flipping Pin
Alan Chambers26-Jun-02 0:07
Alan Chambers26-Jun-02 0:07 
GeneralRe: DirectDraw Surface Flipping Pin
Rage26-Jun-02 0:27
professionalRage26-Jun-02 0:27 
GeneralRe: DirectDraw Surface Flipping Pin
Alan Chambers26-Jun-02 1:38
Alan Chambers26-Jun-02 1:38 
GeneralRe: DirectDraw Surface Flipping Pin
Rage26-Jun-02 3:59
professionalRage26-Jun-02 3:59 
QuestionCArchive + clipboard + ABCs = ? Pin
Chris Losinger25-Jun-02 11:03
professionalChris Losinger25-Jun-02 11:03 
I have a set of classes all derived from a single abstract base class (not CObject-based). Each of these classes can serialize itself, and does so by first calling Serialize on the base class, to serialize the common stuff.

Now, i'm adding clipboard support for these objects. I used the "clipboard assistant", which is uses CArchive to store the objects. Storing them on the clipboard is easy, just serialize out. So far so good. But going the other way, creating an object based on data from the clipboard, is where I'm stuck. I can't just serialize to my derived objects because I don't know which one to use - all I know is that I have a chunk of serialized data that came from one of my derived classes. I can't serialize to the base class because it's abstract.

Part of what the base class serializes is a tag that identifies the derived class type. But, I can't read into that CArchive to find the tag, then rewind, because CArchive doesn't have any "rewind" functionality (though its CFile member probably does).

Any ideas?

-c


Garbage collection, making life better - for weenies!
Image Processing - now with extra cess.

AnswerRe: CArchive + clipboard + ABCs = ? Pin
Alan Chambers25-Jun-02 11:45
Alan Chambers25-Jun-02 11:45 
GeneralRe: CArchive + clipboard + ABCs = ? Pin
Chris Losinger25-Jun-02 11:56
professionalChris Losinger25-Jun-02 11:56 
AnswerRe: CArchive + clipboard + ABCs = ? Pin
Ravi Bhavnani25-Jun-02 12:38
professionalRavi Bhavnani25-Jun-02 12:38 
GeneralCrashing DLL Pin
25-Jun-02 10:38
suss25-Jun-02 10:38 
GeneralRe: Crashing DLL Pin
Tim Smith25-Jun-02 17:32
Tim Smith25-Jun-02 17:32 
GeneralTabbedTextOut Bug Pin
25-Jun-02 10:06
suss25-Jun-02 10:06 
Generalcreating new child MDI windows, I need help Pin
25-Jun-02 9:58
suss25-Jun-02 9:58 
GeneralRe: creating new child MDI windows, I need help Pin
Bill Wilson25-Jun-02 12:35
Bill Wilson25-Jun-02 12:35 
Generalscrollbars (hiding the thumb) Pin
25-Jun-02 9:45
suss25-Jun-02 9:45 
GeneralRe: scrollbars (hiding the thumb) Pin
Anders Molin25-Jun-02 10:45
professionalAnders Molin25-Jun-02 10:45 
GeneralRe: scrollbars (hiding the thumb) Pin
25-Jun-02 23:23
suss25-Jun-02 23:23 
GeneralPassing in Argvs in windows Pin
Unplugged25-Jun-02 9:38
Unplugged25-Jun-02 9:38 
GeneralRe: Passing in Argvs in windows Pin
Anders Molin25-Jun-02 9:44
professionalAnders Molin25-Jun-02 9:44 
GeneralRe: Passing in Argvs in windows Pin
Unplugged25-Jun-02 9:49
Unplugged25-Jun-02 9:49 
GeneralRe: Passing in Argvs in windows Pin
Anders Molin25-Jun-02 10:40
professionalAnders Molin25-Jun-02 10:40 
GeneralRe: Passing in Argvs in windows Pin
Joaquín M López Muñoz25-Jun-02 10:43
Joaquín M López Muñoz25-Jun-02 10:43 
GeneralRe: Passing in Argvs in windows Pin
Michael Dunn25-Jun-02 17:54
sitebuilderMichael Dunn25-Jun-02 17:54 

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.