At 05/06/2003 10:08 AM, Neil Devlin wrote:
> I have a global class that gets used with events from iexplorer, which
>works fine. But I have one of the functions called within the same global
>class during the OnTimer(..) which resets some of the variables. What is the
>best way of making sure that the variables are not getting modified by the
>two parts of the application? I tried using CCriticalSection, but didnt
>work, then realised it protects the sections from different threads.
>
>Anyone any ideas the best way of doing this?
I would use a Semaphore, but that is my OS/2 background showing.
I think NT people tend to use Events.
Phil Daley < AutoDesk >
http://personal.monad.net/~p_daley
