Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PreTranslateMessage in ocx Pin
igor196027-Aug-03 9:17
igor196027-Aug-03 9:17 
GeneralRe: PreTranslateMessage in ocx Pin
Dudi Avramov27-Aug-03 21:10
Dudi Avramov27-Aug-03 21:10 
GeneralRe: PreTranslateMessage in ocx Pin
igor196028-Aug-03 8:26
igor196028-Aug-03 8:26 
GeneralRe: PreTranslateMessage in ocx Pin
Dudi Avramov30-Aug-03 19:30
Dudi Avramov30-Aug-03 19:30 
GeneralCustom CWnd - Z-Order Pin
Andrew Birt27-Aug-03 0:49
Andrew Birt27-Aug-03 0:49 
GeneralRe: Custom CWnd - Z-Order Pin
l a u r e n27-Aug-03 7:56
l a u r e n27-Aug-03 7:56 
GeneralThreading problem (Threads, Dialogs and Messages) Pin
d-mon27-Aug-03 0:27
d-mon27-Aug-03 0:27 
GeneralRe: Threading problem (Threads, Dialogs and Messages) Pin
Neville Franks27-Aug-03 2:24
Neville Franks27-Aug-03 2:24 
When you say it works fine, how do you know? You haven't included the CWorkDlg class, but I assume Go() isn't a static function, in which case it can't be used as a thread function. But your biggest problem is worker threads don't have access to the CWnd* objects in the handle map of the main thread. So pD->GetParent()->SendMessage(WORK_END_DLG); is unlikely to work. Also using SendMessage() from a worker thread to the main app thread is not a good idea at all as you can get into deadlock situations.

I suggest you do lots of reading on multithreading as it is a difficult and complex area which is fraught with problems for the unitiated. You'll find articles here on CP which will help.

Oh and when you post code use the pre, code format toolbar options and the 'Do not treat <'s as HTML tags' or &lt;&gt; buttons which all make your code a lot more readable.

Neville Franks, Author of ED for Windows. Free Trial at <a href="http://www.getsoft.com">www.getsoft.com</a>

GeneralRe: Threading problem (Threads, Dialogs and Messages) Pin
John M. Drescher27-Aug-03 4:54
John M. Drescher27-Aug-03 4:54 
GeneralRe: Threading problem (Threads, Dialogs and Messages) Pin
d_mon@email.si27-Aug-03 9:27
sussd_mon@email.si27-Aug-03 9:27 
GeneralRe: Threading problem (Threads, Dialogs and Messages) Pin
Neville Franks27-Aug-03 10:24
Neville Franks27-Aug-03 10:24 
GeneralRe: Threading problem (Threads, Dialogs and Messages) Pin
valikac27-Aug-03 12:53
valikac27-Aug-03 12:53 
Generallinking error Pin
bhawin1327-Aug-03 0:04
bhawin1327-Aug-03 0:04 
GeneralRe: linking error Pin
Ryan Binns27-Aug-03 0:45
Ryan Binns27-Aug-03 0:45 
Generallinking error Pin
bhawin1327-Aug-03 0:02
bhawin1327-Aug-03 0:02 
GeneralRe: linking error Pin
Alexander M.,27-Aug-03 13:02
Alexander M.,27-Aug-03 13:02 
GeneralExperts please help.. Pin
rohit.dhamija26-Aug-03 23:56
rohit.dhamija26-Aug-03 23:56 
GeneralRe: Experts please help.. Pin
Magnus Westin27-Aug-03 2:45
Magnus Westin27-Aug-03 2:45 
Generalsome predefinitions Pin
FlyingDancer26-Aug-03 23:09
FlyingDancer26-Aug-03 23:09 
GeneralRe: some predefinitions Pin
Ryan Binns27-Aug-03 0:52
Ryan Binns27-Aug-03 0:52 
GeneralRe: some predefinitions Pin
FlyingDancer27-Aug-03 2:32
FlyingDancer27-Aug-03 2:32 
Questionunicode value ??? Pin
Manikandan26-Aug-03 22:57
Manikandan26-Aug-03 22:57 
AnswerRe: unicode value ??? Pin
Anonymous27-Aug-03 3:51
Anonymous27-Aug-03 3:51 
QuestionHow to rigister the auto-hide style window? Pin
Hendy_So26-Aug-03 22:37
Hendy_So26-Aug-03 22:37 
GeneralMemory Leakage Pin
Jahangir Jamshed26-Aug-03 22:30
sussJahangir Jamshed26-Aug-03 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.