Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Why EnumDisplaySettingsEx doesn't work Pin
vmaltsev9-Nov-03 3:52
vmaltsev9-Nov-03 3:52 
GeneralRe: Why EnumDisplaySettingsEx doesn't work Pin
w_yufeng9-Nov-03 14:19
w_yufeng9-Nov-03 14:19 
GeneralRe: Why EnumDisplaySettingsEx doesn't work Pin
Tim Smith9-Nov-03 14:41
Tim Smith9-Nov-03 14:41 
GeneralProblem with checkboxes in CListCtrl Pin
Dominik Reichl8-Nov-03 23:39
Dominik Reichl8-Nov-03 23:39 
GeneralRe: Problem with checkboxes in CListCtrl Pin
Michael Dunn9-Nov-03 6:00
sitebuilderMichael Dunn9-Nov-03 6:00 
GeneralRe: Problem with checkboxes in CListCtrl Pin
Dominik Reichl9-Nov-03 6:13
Dominik Reichl9-Nov-03 6:13 
GeneralRe: Problem with checkboxes in CListCtrl Pin
peterchen9-Nov-03 10:39
peterchen9-Nov-03 10:39 
GeneralRe: Problem with checkboxes in CListCtrl Pin
Dominik Reichl10-Nov-03 1:17
Dominik Reichl10-Nov-03 1:17 
GeneralRe: Problem with checkboxes in CListCtrl Pin
peterchen10-Nov-03 1:27
peterchen10-Nov-03 1:27 

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.