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

C / C++ / MFC

 
GeneralRe: How to register .OCX Pin
ZaebanB21-Jun-06 3:52
ZaebanB21-Jun-06 3:52 
QuestionC++: pls help me to choose or suggest me a new one Pin
Sarath C21-Jun-06 1:14
Sarath C21-Jun-06 1:14 
AnswerRe: C++: pls help me to choose or suggest me a new one Pin
Ravi Bhavnani21-Jun-06 2:26
professionalRavi Bhavnani21-Jun-06 2:26 
AnswerRe: C++: pls help me to choose or suggest me a new one Pin
Rutger Ellen21-Jun-06 2:30
Rutger Ellen21-Jun-06 2:30 
AnswerRe: C++: pls help me to choose or suggest me a new one Pin
Chris Meech21-Jun-06 2:33
Chris Meech21-Jun-06 2:33 
AnswerRe: C++: pls help me to choose or suggest me a new one Pin
HakunaMatada21-Jun-06 2:49
HakunaMatada21-Jun-06 2:49 
GeneralRe: C++: pls help me to choose or suggest me a new one Pin
Sarath C21-Jun-06 3:14
Sarath C21-Jun-06 3:14 
GeneralRe: C++: pls help me to choose or suggest me a new one Pin
HakunaMatada21-Jun-06 18:18
HakunaMatada21-Jun-06 18:18 
Well not sure if this is exactly what you need, but here goes. Smile | :)

Define the funtion that you want to call as a pure virtual function in CBaseEvent. Code their implementations in CSysEvent and CGuiEvent.

Now whenever you want to call the function, just upcast the CBaseEvent's pointer with either CSysEvent or CGuiEvent's address.

CBaseEvent* Base ;<br />
CSysEvent Sys ;<br />
Base = &Sys ;<br />
Base->Function() ; //Calls CSysEvent's Function.


Hope this was helpful.



---
With best regards,
A Manchester United Fan

The Genius of a true fool is that he can mess up a foolproof plan!
AnswerRe: C++: pls help me to choose or suggest me a new one Pin
led mike21-Jun-06 7:37
led mike21-Jun-06 7:37 
Questionhow to embed controls in mail merge Pin
karthik Tamizhmathi21-Jun-06 0:22
karthik Tamizhmathi21-Jun-06 0:22 
AnswerRe: how to embed controls in mail merge Pin
NiceNaidu21-Jun-06 0:44
NiceNaidu21-Jun-06 0:44 
QuestionGDI Region in a Class... Pin
nermsk20-Jun-06 23:59
nermsk20-Jun-06 23:59 
AnswerRe: GDI Region in a Class... Pin
NiceNaidu21-Jun-06 0:07
NiceNaidu21-Jun-06 0:07 
GeneralRe: GDI Region in a Class... Pin
nermsk21-Jun-06 0:13
nermsk21-Jun-06 0:13 
GeneralRe: GDI Region in a Class... Pin
NiceNaidu21-Jun-06 0:38
NiceNaidu21-Jun-06 0:38 
GeneralRe: GDI Region in a Class... Pin
nermsk21-Jun-06 1:39
nermsk21-Jun-06 1:39 
AnswerRe: GDI Region in a Class... Pin
Weiye Chen21-Jun-06 0:15
Weiye Chen21-Jun-06 0:15 
Questionregarding CTime Pin
happy_ram20-Jun-06 23:32
happy_ram20-Jun-06 23:32 
AnswerRe: regarding CTime Pin
jhwurmbach20-Jun-06 23:48
jhwurmbach20-Jun-06 23:48 
AnswerRe: regarding CTime Pin
toxcct20-Jun-06 23:50
toxcct20-Jun-06 23:50 
AnswerRe: regarding CTime Pin
NiceNaidu20-Jun-06 23:56
NiceNaidu20-Jun-06 23:56 
AnswerRe: regarding CTime Pin
Weiye Chen21-Jun-06 0:03
Weiye Chen21-Jun-06 0:03 
QuestionBreak point Pin
Anu_Bala20-Jun-06 23:13
Anu_Bala20-Jun-06 23:13 
AnswerRe: Break point Pin
Cedric Moonen20-Jun-06 23:22
Cedric Moonen20-Jun-06 23:22 
GeneralRe: Break point Pin
Anu_Bala20-Jun-06 23:32
Anu_Bala20-Jun-06 23:32 

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.