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

C / C++ / MFC

 
QuestionHow to register .OCX Pin
ZaebanB21-Jun-06 1:18
ZaebanB21-Jun-06 1:18 
AnswerRe: How to register .OCX Pin
NiceNaidu21-Jun-06 1:33
NiceNaidu21-Jun-06 1:33 
AnswerRe: How to register .OCX Pin
Cedric Moonen21-Jun-06 1:35
Cedric Moonen21-Jun-06 1:35 
AnswerRe: How to register .OCX Pin
Sarath C21-Jun-06 1:36
Sarath C21-Jun-06 1:36 
AnswerRe: How to register .OCX Pin
David Crow21-Jun-06 2:54
David Crow21-Jun-06 2:54 
AnswerRe: How to register .OCX Pin
Anilkumar K V21-Jun-06 3:26
Anilkumar K V21-Jun-06 3:26 
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 
Take a minute to read. I could not shorten my problem... be patient...

I have a CBaseEvent class

There are other two classes have derived from CBaseEvent named CSysEvent and CGuiEvent

I have created a queue of CBaseEvent pointers.
This queue is being processed by an event handler class. A thread is working for this.
Whenever a new event adds on the queue, this thread will process the event by calling ProcessEventFunction. which prototyped as ProcessEventFunction(CBaseEvent* pEvent)

Here comes the problem. How can I identify between System Event and GUI event?

These are the possibilities I have

1. Use dynamic_cast identify the pointer using dynamic cast. Then do the further processing depends on Sys event or GUI event.

2. Do the above check inside the thread itself and call the ProcessEvent function overloaded with GUI event and SysEvent depends on the result

3. Use two queues. One for sys event and another for GUI event. Run two threads for the same and call the overloaded ProcessEvent function depends on the queue. Here definitely I’ll face some problems with the order of the events received. I need to process the sys and GUI events in first come first serve manner. So this approach will have sync issues.

The above are the solutions I have!!! Could you pls suggest one from this or a new one?

Again sorry for borring you with a long question Smile | :)

SaRath.

"Do Next Thing..."

Understanding State Pattern in C++

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 
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 

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.