Click here to Skip to main content
16,005,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Invalid Argument Pin
sschilachi6-Apr-04 5:31
sschilachi6-Apr-04 5:31 
GeneralRe: Invalid Argument Pin
David Crow6-Apr-04 5:42
David Crow6-Apr-04 5:42 
AnswerRe: An invalid argument was encountered Pin
rhfritz121-Apr-10 3:04
rhfritz121-Apr-10 3:04 
Questionuser defined events? Pin
nurpinar6-Apr-04 2:17
nurpinar6-Apr-04 2:17 
AnswerRe: user defined events? Pin
mangellj6-Apr-04 3:56
mangellj6-Apr-04 3:56 
GeneralC++ help - getting object types Pin
Anonymous6-Apr-04 2:17
Anonymous6-Apr-04 2:17 
GeneralRe: C++ help - getting object types Pin
Cedric Moonen6-Apr-04 2:29
Cedric Moonen6-Apr-04 2:29 
GeneralRe: C++ help - getting object types Pin
thowra6-Apr-04 2:58
thowra6-Apr-04 2:58 
That would work, but it means that you couldn't then add derived classes without having to change your base class.

An alternative is to use the IsKindOf() member function of CObject, which means of course, that you would have to derive your base class from CObject, but that may add useful features such as serialisation and dynamic creation.

More here:

MSDN - Accessing run-time info[^]

"Oh, I'm sick of doing Japanese stuff! In jail we had to be in this dumb kabuki play about the 47 Ronin, and I wanted to be Oshi, but they made me Ori!"

GeneralRe: C++ help - getting object types Pin
Cedric Moonen6-Apr-04 3:09
Cedric Moonen6-Apr-04 3:09 
GeneralRe: C++ help - getting object types Pin
thowra6-Apr-04 6:18
thowra6-Apr-04 6:18 
GeneralRe: C++ help - getting object types Pin
Maximilien6-Apr-04 2:59
Maximilien6-Apr-04 2:59 
GeneralRe: C++ help - getting object types Pin
Andrew Walker6-Apr-04 4:49
Andrew Walker6-Apr-04 4:49 
GeneralRe: C++ help - getting object types Pin
Nemanja Trifunovic6-Apr-04 5:05
Nemanja Trifunovic6-Apr-04 5:05 
GeneralRe: C++ help - getting object types Pin
Maxwell Chen6-Apr-04 16:45
Maxwell Chen6-Apr-04 16:45 
GeneralRe: C++ help - getting object types Pin
David Crow6-Apr-04 4:57
David Crow6-Apr-04 4:57 
GeneralRe: C++ help - getting object types Pin
thowra6-Apr-04 6:16
thowra6-Apr-04 6:16 
GeneralDebug service Pin
Anonymous6-Apr-04 0:56
Anonymous6-Apr-04 0:56 
GeneralRe: Debug service Pin
Milton Karimbekallil6-Apr-04 1:15
Milton Karimbekallil6-Apr-04 1:15 
Generalstock quote Pin
Anonymous6-Apr-04 0:54
Anonymous6-Apr-04 0:54 
Generalbitmap Pin
m_vnaresh6-Apr-04 0:46
m_vnaresh6-Apr-04 0:46 
GeneralRe: bitmap Pin
avenger_sb256-Apr-04 7:36
avenger_sb256-Apr-04 7:36 
GeneralRe: bitmap Pin
John R. Shaw6-Apr-04 16:48
John R. Shaw6-Apr-04 16:48 
GeneralMenu Pin
Rassul Yunussov6-Apr-04 0:07
Rassul Yunussov6-Apr-04 0:07 
GeneralRe: Menu Pin
Empty19816-Apr-04 0:36
Empty19816-Apr-04 0:36 
GeneralRe: Menu Pin
Antony M Kancidrowski6-Apr-04 1:22
Antony M Kancidrowski6-Apr-04 1:22 

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.