Click here to Skip to main content
15,901,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tree Control Pin
Chambers18-Oct-01 1:15
Chambers18-Oct-01 1:15 
GeneralRe: Tree Control Pin
Paolo Messina18-Oct-01 2:13
professionalPaolo Messina18-Oct-01 2:13 
Generalseeking the BCGControlBar 4.7 Pin
9-Oct-01 11:27
suss9-Oct-01 11:27 
GeneralRe: seeking the BCGControlBar 4.7 Pin
Paul Selormey9-Oct-01 15:40
Paul Selormey9-Oct-01 15:40 
GeneralEditbox Validation when hitting enter Pin
Steve The Plant9-Oct-01 10:34
Steve The Plant9-Oct-01 10:34 
GeneralRe: Editbox Validation when hitting enter Pin
Carlos Antollini9-Oct-01 11:18
Carlos Antollini9-Oct-01 11:18 
GeneralRe: Editbox Validation when hitting enter Pin
9-Oct-01 18:51
suss9-Oct-01 18:51 
GeneralEvent Notification in C++ Pin
Sam C9-Oct-01 9:34
Sam C9-Oct-01 9:34 
Does anyone know of a technique to "raise events" between two class objects? For example I have class A and Class B, I make a change to one of the member variables in class B, could be 20 of them, how do I notify class A of the change so it can see what has changed and act accordingly? Sort of of like Windows WinProc?

Here are some simplistic ideas I have come up with

1. Create a system timer within class A and have it poll a "isDirty" variable in B and that is when it knows something is amiss.

2. Create a message queue in class A that B would send things too, and when A has a chance respond to the message.

3. Give up C++ programming and go back to Visual Basic Smile | :) (Not that I can do what I need to do within VB)

I don't prefer C because that might weigh heavily on system performance, and 2 seems more complex than it should, and I am definitely trying to avoid 3 !

So if any C++ gurus can give me a hint or point me in the right direction I would be mighty appreciative of yous. <g>


Sam C
----
Systems Manager
Hospitality Marketing Associates
GeneralRe: Event Notification in C++ Pin
Nemanja Trifunovic9-Oct-01 9:42
Nemanja Trifunovic9-Oct-01 9:42 
GeneralRe: Event Notification in C++ Pin
Sam C9-Oct-01 9:45
Sam C9-Oct-01 9:45 
GeneralRe: Event Notification in C++ Pin
J Patel9-Oct-01 9:43
J Patel9-Oct-01 9:43 
GeneralRe: Event Notification in C++ Pin
Sam C9-Oct-01 9:46
Sam C9-Oct-01 9:46 
GeneralRe: Event Notification in C++ Pin
Tomasz Sowinski9-Oct-01 9:54
Tomasz Sowinski9-Oct-01 9:54 
GeneralRe: Event Notification in C++ Pin
Nemanja Trifunovic9-Oct-01 10:00
Nemanja Trifunovic9-Oct-01 10:00 
GeneralRe: Event Notification in C++ Pin
Tomasz Sowinski9-Oct-01 10:07
Tomasz Sowinski9-Oct-01 10:07 
GeneralRe: Event Notification in C++ Pin
Nemanja Trifunovic9-Oct-01 10:10
Nemanja Trifunovic9-Oct-01 10:10 
GeneralRe: Event Notification in C++ Pin
Fazlul Kabir9-Oct-01 11:09
Fazlul Kabir9-Oct-01 11:09 
GeneralRe: Event Notification in C++ Pin
Nemanja Trifunovic9-Oct-01 11:15
Nemanja Trifunovic9-Oct-01 11:15 
GeneralRe: Event Notification in C++ Pin
Sam C9-Oct-01 11:01
Sam C9-Oct-01 11:01 
GeneralRe: Event Notification in C++ Pin
Nemanja Trifunovic9-Oct-01 11:19
Nemanja Trifunovic9-Oct-01 11:19 
GeneralRe: Event Notification in C++ Pin
Sam C9-Oct-01 11:38
Sam C9-Oct-01 11:38 
GeneralRe: Event Notification in C++ Pin
Nemanja Trifunovic9-Oct-01 11:49
Nemanja Trifunovic9-Oct-01 11:49 
GeneralChanging the font for menus Pin
Stephen Wilson9-Oct-01 8:47
Stephen Wilson9-Oct-01 8:47 
GeneralRe: Changing the font for menus Pin
Tomasz Sowinski9-Oct-01 8:56
Tomasz Sowinski9-Oct-01 8:56 
QuestionIs a window title the same as the .exe name? Pin
9-Oct-01 7:49
suss9-Oct-01 7:49 

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.