Click here to Skip to main content
15,913,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiline textbox Pin
Christian Graus20-Nov-02 23:58
protectorChristian Graus20-Nov-02 23:58 
GeneralRe: Multiline textbox Pin
Anonymous21-Nov-02 1:12
Anonymous21-Nov-02 1:12 
GeneralMaximum size of EventLog Pin
draman20-Nov-02 22:58
draman20-Nov-02 22:58 
GeneralRe: Maximum size of EventLog Pin
RobJones21-Nov-02 3:06
RobJones21-Nov-02 3:06 
GeneralOOP Conception question Pin
khaldoun20-Nov-02 22:07
khaldoun20-Nov-02 22:07 
GeneralRe: OOP Conception question Pin
Joao Vaz20-Nov-02 22:43
Joao Vaz20-Nov-02 22:43 
GeneralRe: OOP Conception question Pin
khaldoun20-Nov-02 22:57
khaldoun20-Nov-02 22:57 
GeneralRe: OOP Conception question Pin
Joao Vaz21-Nov-02 0:02
Joao Vaz21-Nov-02 0:02 
khaldoun wrote:
If I declare a dynamic array of CElement as a member of the CPoster class.

Yeap, duh, of course you could use a CArray or a CArrayList or a STL vector .. if the number is unknow at compile time , what it's more normal to happen , I should have added this on the previous post Dead | X|


khaldoun wrote:
here I think that i call the CElement::Load(strFileName) instead of CImage::Load(strFileName)

Yes, it's quite natural do this, this is why you derived the CImage and al from CElement, and will make this Load and Save methods virtual in CElement to obtain polimorfic behaviour, didn't you Wink | ;)

BTW your Load and Save methods in the implementation could call the CArchive << and >> virtual methods of COBject as I explained in the post and on the msdn link Smile | :)





Cheers,Joao Vaz
And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9

Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech

GeneralRe: OOP Conception question Pin
Alexandru Savescu21-Nov-02 2:06
Alexandru Savescu21-Nov-02 2:06 
QuestionHow to add resource to Win32 DLL Pin
bugtwo20-Nov-02 22:02
bugtwo20-Nov-02 22:02 
AnswerRe: How to add resource to Win32 DLL Pin
Navin21-Nov-02 4:49
Navin21-Nov-02 4:49 
Generaldefault web browser Pin
aahrol20-Nov-02 21:54
aahrol20-Nov-02 21:54 
GeneralRe: default web browser Pin
Navin21-Nov-02 4:21
Navin21-Nov-02 4:21 
GeneralRe: default web browser Pin
aahrol21-Nov-02 6:02
aahrol21-Nov-02 6:02 
GeneralDLL question Pin
Mel Feik20-Nov-02 20:01
Mel Feik20-Nov-02 20:01 
GeneralRe: DLL question Pin
Cathy20-Nov-02 21:09
Cathy20-Nov-02 21:09 
GeneralRe: DLL question Pin
Mel Feik20-Nov-02 21:15
Mel Feik20-Nov-02 21:15 
GeneralRe: DLL question Pin
Cathy20-Nov-02 21:45
Cathy20-Nov-02 21:45 
GeneralRe: DLL question Pin
Anonymous20-Nov-02 21:58
Anonymous20-Nov-02 21:58 
GeneralRe: DLL question Pin
Mel Feik20-Nov-02 22:02
Mel Feik20-Nov-02 22:02 
GeneralRe: DLL question Pin
Navin21-Nov-02 4:26
Navin21-Nov-02 4:26 
GeneralOutlook syncronization Pin
Diarrhio20-Nov-02 19:46
Diarrhio20-Nov-02 19:46 
GeneralThumbnail Image Using Activex Control Pin
sachin_cd20-Nov-02 19:29
sachin_cd20-Nov-02 19:29 
GeneralRe: Thumbnail Image Using Activex Control Pin
Chanda.com21-Nov-02 2:41
Chanda.com21-Nov-02 2:41 
Generalgraphic user interface programming question.. Pin
20-Nov-02 17:30
suss20-Nov-02 17:30 

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.