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

C / C++ / MFC

 
AnswerRe: PreTranslateMessage Pin
Mircea Puiu2-Oct-05 20:37
Mircea Puiu2-Oct-05 20:37 
According to MS, a custom DLL that is statically linked to the MFC library needs to have a CWinApp-derived class and a single object of that application class, as does an executable MFC application. The CWinApp object of the DLL, however, does not have a main message pump, as does the CWinApp object of an application. If the DLL opens modeless dialogs or has a main frame window of its own, the application's main message pump must call a routine exported by the DLL, which in turn calls the CWinApp::PreTranslateMessage member function of the DLL's application object.

See coding example and more info on the topic here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html/_sample_mfc_dlltrace.asp[^]


SkyWalker
GeneralRe: PreTranslateMessage Pin
Nishad S2-Oct-05 22:08
Nishad S2-Oct-05 22:08 
GeneralRe: PreTranslateMessage Pin
Mircea Puiu3-Oct-05 0:53
Mircea Puiu3-Oct-05 0:53 
GeneralRe: PreTranslateMessage Pin
Nishad S3-Oct-05 1:44
Nishad S3-Oct-05 1:44 
QuestionCmenu Pin
act_x2-Oct-05 15:58
act_x2-Oct-05 15:58 
Questionsimulate a hardware interrupt? Pin
hypnotikalthoughts2-Oct-05 14:26
hypnotikalthoughts2-Oct-05 14:26 
AnswerRe: simulate a hardware interrupt? Pin
Jose Lamas Rios2-Oct-05 16:19
Jose Lamas Rios2-Oct-05 16:19 
Questionnetwork inquiries Pin
benjnp2-Oct-05 14:10
benjnp2-Oct-05 14:10 
AnswerRe: network inquiries Pin
Calc202-Oct-05 20:55
Calc202-Oct-05 20:55 
AnswerRe: network inquiries Pin
vikas amin2-Oct-05 20:58
vikas amin2-Oct-05 20:58 
AnswerRe: network inquiries Pin
S Douglas2-Oct-05 23:26
professionalS Douglas2-Oct-05 23:26 
AnswerRe: network inquiries Pin
benjnp3-Oct-05 5:00
benjnp3-Oct-05 5:00 
QuestionSocket Programming ??? Pin
RanjanShrestha2-Oct-05 9:36
RanjanShrestha2-Oct-05 9:36 
AnswerRe: Socket Programming ??? Pin
Ghasrfakhri2-Oct-05 11:01
Ghasrfakhri2-Oct-05 11:01 
AnswerRe: Socket Programming ??? Pin
John M. Drescher2-Oct-05 11:34
John M. Drescher2-Oct-05 11:34 
Questionusing an "unknown" DLL Pin
reinhard_jd2-Oct-05 7:27
reinhard_jd2-Oct-05 7:27 
AnswerRe: using an "unknown" DLL Pin
Ghasrfakhri2-Oct-05 11:05
Ghasrfakhri2-Oct-05 11:05 
AnswerRe: using an "unknown" DLL Pin
Jose Lamas Rios2-Oct-05 16:57
Jose Lamas Rios2-Oct-05 16:57 
GeneralRe: using an "unknown" DLL Pin
reinhard_jd3-Oct-05 8:07
reinhard_jd3-Oct-05 8:07 
GeneralRe: using an "unknown" DLL Pin
Jose Lamas Rios3-Oct-05 9:04
Jose Lamas Rios3-Oct-05 9:04 
GeneralRe: using an "unknown" DLL Pin
reinhard_jd3-Oct-05 12:57
reinhard_jd3-Oct-05 12:57 
Questionsending url POST method Pin
hamavreg2-Oct-05 6:55
hamavreg2-Oct-05 6:55 
AnswerRe: sending url POST method Pin
Ravi Bhavnani2-Oct-05 7:58
professionalRavi Bhavnani2-Oct-05 7:58 
AnswerRe: sending url POST method Pin
ThatsAlok2-Oct-05 18:19
ThatsAlok2-Oct-05 18:19 
Questiondeclaring const strings Pin
Chintoo7232-Oct-05 6:28
Chintoo7232-Oct-05 6:28 

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.