Click here to Skip to main content
16,007,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionis there any variable change event to notify in MFC Pin
manoharbalu21-Apr-11 22:18
manoharbalu21-Apr-11 22:18 
AnswerRe: is there any variable change event to notify in MFC Pin
Richard MacCutchan21-Apr-11 22:53
mveRichard MacCutchan21-Apr-11 22:53 
AnswerRe: is there any variable change event to notify in MFC Pin
Hans Dietrich21-Apr-11 23:14
mentorHans Dietrich21-Apr-11 23:14 
AnswerRe: is there any variable change event to notify in MFC Pin
Albert Holguin22-Apr-11 8:36
professionalAlbert Holguin22-Apr-11 8:36 
QuestionIncremental search method for CEditview or CRicheditView Pin
ganesh.dp21-Apr-11 20:58
ganesh.dp21-Apr-11 20:58 
AnswerRe: Incremental search method for CEditview or CRicheditView Pin
Mattias G21-Apr-11 22:05
Mattias G21-Apr-11 22:05 
Questionhow to detect a variable change in MFC Pin
manoharbalu21-Apr-11 18:55
manoharbalu21-Apr-11 18:55 
AnswerRe: how to detect a variable change in MFC Pin
«_Superman_»21-Apr-11 20:19
professional«_Superman_»21-Apr-11 20:19 
Create a class instead of the structure.
Make all you variables as private members.
Write public functions that will modify the variables.
This way the public functions can call other functions or fire events to notify other observers.

You can otherwise go for a full fledged observer pattern where all observers can register events or callbacks to be called as a result of a data modification.
«_Superman 
I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++)

Polymorphism in C

GeneralRe: how to detect a variable change in MFC Pin
manoharbalu21-Apr-11 21:05
manoharbalu21-Apr-11 21:05 
GeneralRe: how to detect a variable change in MFC Pin
barneyman22-Apr-11 0:24
barneyman22-Apr-11 0:24 
GeneralRe: how to detect a variable change in MFC Pin
Stefan_Lang26-Apr-11 1:24
Stefan_Lang26-Apr-11 1:24 
QuestionWriting a Questionnaire using C++ Pin
Member 786165621-Apr-11 3:18
Member 786165621-Apr-11 3:18 
AnswerRe: Writing a Questionnaire using C++ Pin
CPallini21-Apr-11 3:25
mveCPallini21-Apr-11 3:25 
AnswerRe: Writing a Questionnaire using C++ Pin
HimanshuJoshi21-Apr-11 4:29
HimanshuJoshi21-Apr-11 4:29 
AnswerRe: Writing a Questionnaire using C++ Pin
Richard MacCutchan21-Apr-11 6:45
mveRichard MacCutchan21-Apr-11 6:45 
GeneralRe: Writing a Questionnaire using C++ Pin
CPallini21-Apr-11 7:13
mveCPallini21-Apr-11 7:13 
GeneralRe: Writing a Questionnaire using C++ Pin
Richard MacCutchan21-Apr-11 8:05
mveRichard MacCutchan21-Apr-11 8:05 
AnswerRe: Writing a Questionnaire using C++ Pin
Mattias G21-Apr-11 10:18
Mattias G21-Apr-11 10:18 
QuestionRe: Writing a Questionnaire using C++ Pin
David Crow26-Apr-11 2:52
David Crow26-Apr-11 2:52 
Questionfatal error LNK1112 Pin
Walking Hell21-Apr-11 0:43
Walking Hell21-Apr-11 0:43 
AnswerRe: fatal error LNK1112 Pin
«_Superman_»21-Apr-11 1:47
professional«_Superman_»21-Apr-11 1:47 
GeneralRe: fatal error LNK1112 [modified] Pin
Walking Hell21-Apr-11 4:04
Walking Hell21-Apr-11 4:04 
GeneralRe: fatal error LNK1112 Pin
«_Superman_»21-Apr-11 4:16
professional«_Superman_»21-Apr-11 4:16 
GeneralRe: fatal error LNK1112 Pin
Walking Hell21-Apr-11 4:21
Walking Hell21-Apr-11 4:21 
GeneralRe: fatal error LNK1112 Pin
Walking Hell21-Apr-11 4:55
Walking Hell21-Apr-11 4:55 

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.