Click here to Skip to main content
15,891,372 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLocalization Pin
Swinefeaster9-Nov-03 16:03
Swinefeaster9-Nov-03 16:03 
Generalcapture shut down message Pin
pranavamhari9-Nov-03 15:14
pranavamhari9-Nov-03 15:14 
GeneralRe: capture shut down message Pin
Michael Dunn9-Nov-03 15:33
sitebuilderMichael Dunn9-Nov-03 15:33 
GeneralRe: capture shut down message Pin
pranavamhari9-Nov-03 18:36
pranavamhari9-Nov-03 18:36 
QuestionAlternative to MFC for GUI Design? Pin
SteveTheTechWriter9-Nov-03 11:27
SteveTheTechWriter9-Nov-03 11:27 
AnswerRe: Alternative to MFC for GUI Design? Pin
Joaquín M López Muñoz9-Nov-03 11:45
Joaquín M López Muñoz9-Nov-03 11:45 
AnswerRe: Alternative to MFC for GUI Design? Pin
Nitron10-Nov-03 8:36
Nitron10-Nov-03 8:36 
GeneralRe: Alternative to MFC for GUI Design? Pin
Anonymous10-Nov-03 9:39
Anonymous10-Nov-03 9:39 
GeneralVC++ 6.0(MFC)-installation package Pin
Manasranajn9-Nov-03 8:53
Manasranajn9-Nov-03 8:53 
GeneralRe: VC++ 6.0(MFC)-installation package Pin
Toni789-Nov-03 12:29
Toni789-Nov-03 12:29 
GeneralRe: VC++ 6.0(MFC)-installation package Pin
BaldwinMartin9-Nov-03 22:14
BaldwinMartin9-Nov-03 22:14 
GeneralCRichEditView Pin
LOSTTWARE.com9-Nov-03 8:18
LOSTTWARE.com9-Nov-03 8:18 
Questionwab format ? Pin
kendao9-Nov-03 8:06
kendao9-Nov-03 8:06 
AnswerRe: wab format ? Pin
BaldwinMartin9-Nov-03 22:07
BaldwinMartin9-Nov-03 22:07 
AnswerRe: wab format ? Pin
Roger Allen10-Nov-03 1:06
Roger Allen10-Nov-03 1:06 
QuestionHow to use Windows Media Player control to play avi file Pin
Mohsen Saad9-Nov-03 5:37
Mohsen Saad9-Nov-03 5:37 
GeneralSolution for object identity Pin
vmaltsev9-Nov-03 3:29
vmaltsev9-Nov-03 3:29 
Hail, dear colleagues.

I have a question about object identity.
Let's say I need to make an array of some objects. These objects (classes) will be defined by users of the library. So, I have to provide a base class with an interface and create an array of these objects. It's clear.
But when user creates a derived class and wants to get an object from the array, he should know about type of this object to be able to cast it back, because in this array objects of different types can be stored.
So, the question is, how to define identity of derived class? Should I implement something like IsKindOf() method and use runtime identification, like in MFC, or there are other ways to do so?
I have to mention that the only extension, which can be used, is STL. No MFC, nor any other platform depended libraries.

Thank you in advance for any suggestions.
GeneralRe: Solution for object identity Pin
Johnny ²9-Nov-03 3:45
Johnny ²9-Nov-03 3:45 
GeneralMountPoints Pin
Thomas Weidenmueller9-Nov-03 2:57
Thomas Weidenmueller9-Nov-03 2:57 
GeneralCreating Ico file Pin
Chernobog19-Nov-03 0:40
Chernobog19-Nov-03 0:40 
GeneralRe: Creating Ico file Pin
Ted Ferenc9-Nov-03 3:19
Ted Ferenc9-Nov-03 3:19 
GeneralRe: Creating Ico file Pin
Chernobog19-Nov-03 3:30
Chernobog19-Nov-03 3:30 
GeneralRe: Creating Ico file Pin
Ted Ferenc9-Nov-03 3:49
Ted Ferenc9-Nov-03 3:49 
GeneralRe: Creating Ico file Pin
Chernobog19-Nov-03 4:19
Chernobog19-Nov-03 4:19 
GeneralWhy EnumDisplaySettingsEx doesn't work Pin
w_yufeng9-Nov-03 0:13
w_yufeng9-Nov-03 0:13 

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.