Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRelease Version Pin
Kash9-Oct-02 1:12
Kash9-Oct-02 1:12 
GeneralRe: Release Version Pin
Jon Hulatt9-Oct-02 1:20
Jon Hulatt9-Oct-02 1:20 
GeneralRe: Release Version Pin
Kash9-Oct-02 3:41
Kash9-Oct-02 3:41 
GeneralRe: Release Version Pin
Steve S9-Oct-02 4:14
Steve S9-Oct-02 4:14 
GeneralRe: Release Version Pin
l a u r e n9-Oct-02 3:30
l a u r e n9-Oct-02 3:30 
GeneralRe: Release Version Pin
Kash9-Oct-02 3:40
Kash9-Oct-02 3:40 
GeneralRe: Release Version Pin
Wouter Dhondt9-Oct-02 4:00
Wouter Dhondt9-Oct-02 4:00 
GeneralCreateEvent/WaitForSingleObject? (Event related to a change in a variable...) Pin
Joan M9-Oct-02 0:30
professionalJoan M9-Oct-02 0:30 
Hello,

INTRODUCTION:
I create Numerical Controls with a specially desgined soft in order to do that.
This soft has a special function that I can call in order to know the value of the variable passed as a parameter.

I can create a timer in order to check continuously the value of it's variable but I think that this is not a very effective way to do it...

QUESTION:
Can I create an event (CreateEvent(...)) that look for the change of that variable and then wait for that change (WaitForSingleObject(...))?

I have to do this mechanism for 40 variables (more or less) but I have no clue of where to begin, which do you think that can be the best solution?

As always thank you in advance.
GeneralRe: CreateEvent/WaitForSingleObject? (Event related to a change in a variable...) Pin
Jon Hulatt9-Oct-02 0:45
Jon Hulatt9-Oct-02 0:45 
GeneralRe: CreateEvent/WaitForSingleObject? (Event related to a change in a variable...) Pin
Joan M9-Oct-02 1:12
professionalJoan M9-Oct-02 1:12 
GeneralRe: CreateEvent/WaitForSingleObject? (Event related to a change in a variable...) Pin
Jon Hulatt9-Oct-02 1:19
Jon Hulatt9-Oct-02 1:19 
GeneralRe: CreateEvent/WaitForSingleObject? (Event related to a change in a variable...) Pin
Joan M9-Oct-02 1:28
professionalJoan M9-Oct-02 1:28 
GeneralRe: CreateEvent/WaitForSingleObject? (Event related to a change in a variable...) Pin
Jon Hulatt9-Oct-02 2:46
Jon Hulatt9-Oct-02 2:46 
GeneralRe: CreateEvent/WaitForSingleObject? (Event related to a change in a variable...) Pin
Joan M9-Oct-02 3:05
professionalJoan M9-Oct-02 3:05 
GeneralRe: CreateEvent/WaitForSingleObject? (Event related to a change in a variable...) Pin
Joan M9-Oct-02 1:32
professionalJoan M9-Oct-02 1:32 
GeneralwParam & lParam Pin
stevenson9-Oct-02 0:01
stevenson9-Oct-02 0:01 
GeneralRe: wParam & lParam Pin
jmkhael9-Oct-02 0:08
jmkhael9-Oct-02 0:08 
GeneralRe: wParam & lParam Pin
stevenson9-Oct-02 0:11
stevenson9-Oct-02 0:11 
GeneralRe: wParam & lParam Pin
jmkhael9-Oct-02 0:29
jmkhael9-Oct-02 0:29 
GeneralRe: wParam & lParam Pin
stevenson9-Oct-02 1:02
stevenson9-Oct-02 1:02 
GeneralRe: wParam & lParam Pin
Jon Hulatt9-Oct-02 1:21
Jon Hulatt9-Oct-02 1:21 
GeneralRe: wParam & lParam Pin
stevenson9-Oct-02 1:43
stevenson9-Oct-02 1:43 
GeneralRe: wParam & lParam Pin
Jon Hulatt9-Oct-02 2:45
Jon Hulatt9-Oct-02 2:45 
GeneralRegistry Pin
homer6668-Oct-02 23:55
homer6668-Oct-02 23:55 
GeneralRe: Registry Pin
jmkhael8-Oct-02 23:58
jmkhael8-Oct-02 23:58 

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.