Click here to Skip to main content
15,921,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Joan M28-Mar-03 5:39
professionalJoan M28-Mar-03 5:39 
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Big Art28-Mar-03 5:57
Big Art28-Mar-03 5:57 
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Joan M28-Mar-03 6:15
professionalJoan M28-Mar-03 6:15 
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Big Art28-Mar-03 6:51
Big Art28-Mar-03 6:51 
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Joan M28-Mar-03 7:05
professionalJoan M28-Mar-03 7:05 
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Big Art28-Mar-03 7:19
Big Art28-Mar-03 7:19 
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Joan M28-Mar-03 7:27
professionalJoan M28-Mar-03 7:27 
GeneralMutual exclusion Pin
act_x28-Mar-03 5:20
act_x28-Mar-03 5:20 
Hi ,
this is a question about providing exclusive access to a control .
Consider my case where I am using a active x control to log certain details. My application works on a REQUEST - RESPONSE mechanism where I request a certain piece of data externally (serial or network ) , wait a certain duration and conitinue processing the next REQUEST. There is another callback function that actually reports the data I am requesting and needs to log the RESPONSE To the same active x control .

I am running into problems when both of these threads are running . i.e Main request loop and the call back thread . They tried to access the same resource via a variable(say the current row of a grid !!!!!) and that is when results go messy .
I know that I can use CCriticalSection to protect a block of code , but how do i provide exclusive access to a resource when they are not part of the same code ? like a control which is spread across different functions? Please help


GeneralRe: Mutual exclusion Pin
Neville Franks28-Mar-03 10:08
Neville Franks28-Mar-03 10:08 
GeneralWindows Registry blues Pin
fd975028-Mar-03 5:02
professionalfd975028-Mar-03 5:02 
GeneralRe: Windows Registry blues Pin
Chris Losinger28-Mar-03 5:20
professionalChris Losinger28-Mar-03 5:20 
GeneralRe: Windows Registry blues Pin
Big Art28-Mar-03 5:22
Big Art28-Mar-03 5:22 
GeneralRe: Windows Registry blues Pin
fd975030-Mar-03 20:07
professionalfd975030-Mar-03 20:07 
QuestionHowto configure doxygen ? Pin
yarp28-Mar-03 5:00
yarp28-Mar-03 5:00 
AnswerRe: Howto configure doxygen ? Pin
Andreas Saurwein28-Mar-03 5:05
Andreas Saurwein28-Mar-03 5:05 
GeneralRe: Howto configure doxygen ? Pin
yarp28-Mar-03 7:10
yarp28-Mar-03 7:10 
Questionhow to add a bitmap.. Pin
liquidsnake18328-Mar-03 4:50
liquidsnake18328-Mar-03 4:50 
AnswerRe: how to add a bitmap.. Pin
Joan M28-Mar-03 5:42
professionalJoan M28-Mar-03 5:42 
Questionoutput iterators? Pin
Andreas Saurwein28-Mar-03 4:44
Andreas Saurwein28-Mar-03 4:44 
AnswerRe: output iterators? Pin
valikac28-Mar-03 4:53
valikac28-Mar-03 4:53 
GeneralRe: output iterators? Pin
Andreas Saurwein28-Mar-03 5:02
Andreas Saurwein28-Mar-03 5:02 
GeneralRe: output iterators? Pin
Daniel Turini28-Mar-03 6:25
Daniel Turini28-Mar-03 6:25 
GeneralRe: output iterators? Pin
Joao Vaz28-Mar-03 6:51
Joao Vaz28-Mar-03 6:51 
GeneralIs there any possiblities using CView in Dialog Pin
Jibesh28-Mar-03 3:30
professionalJibesh28-Mar-03 3:30 
GeneralRe: Is there any possiblities using CView in Dialog Pin
Chris Losinger28-Mar-03 6:13
professionalChris Losinger28-Mar-03 6:13 

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.