Click here to Skip to main content
15,923,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual C++/MFC Thread Question Pin
Ravi Bhavnani11-Aug-05 11:08
professionalRavi Bhavnani11-Aug-05 11:08 
GeneralRe: Visual C++/MFC Thread Question Pin
suzie10011-Aug-05 13:50
suzie10011-Aug-05 13:50 
QuestionWhy doesn't CDC::StretchBlt() work properly, if both DCs are MemoryDCs ? Pin
Achim Klein11-Aug-05 2:27
Achim Klein11-Aug-05 2:27 
AnswerRe: Why doesn Pin
Chris Losinger11-Aug-05 3:15
professionalChris Losinger11-Aug-05 3:15 
GeneralRe: Why doesn Pin
Achim Klein11-Aug-05 3:30
Achim Klein11-Aug-05 3:30 
GeneralThread Problem Pin
Priyank Bolia11-Aug-05 2:11
Priyank Bolia11-Aug-05 2:11 
GeneralRe: Thread Problem Pin
SunKnight011-Aug-05 3:21
SunKnight011-Aug-05 3:21 
GeneralRe: Thread Problem Pin
HumanOsc11-Aug-05 5:39
HumanOsc11-Aug-05 5:39 
Priyank Bolia wrote:
I used a static global mutex object to actually allow only one thread to modify it

The problem is, you like to directly modify the control from different threads...

You should only modify controls from the main thread (or the thread which created the control)... When you like to directly modify it from an other thread, it comes to unexpected situations like memory leaks or a deadlock of the app...

You should only modify the controls from different threads with the usage of PostMessage...

Communicate from the worker thread(s) with the main thread only with PostMessage and custom defined user messages to provide an save ui access...

like: http://www.codeproject.com/threads/usingworkerthreads.asp

Best regards Wink | ;)
Questionstatic methods? Pin
Anonymous11-Aug-05 2:08
Anonymous11-Aug-05 2:08 
AnswerRe: static methods? Pin
Achim Klein11-Aug-05 2:14
Achim Klein11-Aug-05 2:14 
GeneralRe: static methods? Pin
Anonymous11-Aug-05 2:20
Anonymous11-Aug-05 2:20 
GeneralRe: static methods? Pin
Cedric Moonen11-Aug-05 2:32
Cedric Moonen11-Aug-05 2:32 
GeneralRe: static methods? Pin
Achim Klein11-Aug-05 2:33
Achim Klein11-Aug-05 2:33 
AnswerRe: static methods? Pin
toxcct11-Aug-05 3:30
toxcct11-Aug-05 3:30 
GeneralRe: static methods? Pin
Anonymous11-Aug-05 4:24
Anonymous11-Aug-05 4:24 
GeneralRe: static methods? Pin
sunit511-Aug-05 5:34
sunit511-Aug-05 5:34 
AnswerRe: static methods? Pin
sunit511-Aug-05 5:39
sunit511-Aug-05 5:39 
QuestionEnum "real" users Pin
peterchen11-Aug-05 1:37
peterchen11-Aug-05 1:37 
Question(Printer Driver)How to Hide Default Document Property sheet ? Pin
Anonymous11-Aug-05 0:51
Anonymous11-Aug-05 0:51 
QuestionHow can i get the length of a line in a multiline edit box? Pin
tl0825411-Aug-05 0:15
tl0825411-Aug-05 0:15 
AnswerRe: How can i get the length of a line in a multiline edit box? Pin
Achim Klein11-Aug-05 1:38
Achim Klein11-Aug-05 1:38 
GeneralWindows Device Manager Pin
nripun11-Aug-05 0:13
nripun11-Aug-05 0:13 
GeneralRe: Windows Device Manager Pin
Alexander M.,11-Aug-05 1:06
Alexander M.,11-Aug-05 1:06 
GeneralRe: Windows Device Manager Pin
nripun11-Aug-05 3:11
nripun11-Aug-05 3:11 
GeneralEdit Control highlight Pin
zhaopi10-Aug-05 22:30
zhaopi10-Aug-05 22:30 

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.