Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPrinting a Captured Bitmap Pin
karnal2-Oct-05 20:27
karnal2-Oct-05 20:27 
QuestionJPG file Pin
aasstt2-Oct-05 20:05
aasstt2-Oct-05 20:05 
AnswerRe: JPG file Pin
Stlan2-Oct-05 23:47
Stlan2-Oct-05 23:47 
QuestionEnable/Disable pop-up Menu items Pin
lavate malllik2-Oct-05 20:00
lavate malllik2-Oct-05 20:00 
AnswerRe: Enable/Disable pop-up Menu items Pin
lavate malllik2-Oct-05 21:00
lavate malllik2-Oct-05 21:00 
AnswerRe: Enable/Disable pop-up Menu items Pin
Lane Yu2-Oct-05 21:11
Lane Yu2-Oct-05 21:11 
QuestionPreTranslateMessage Pin
Nishad S2-Oct-05 17:47
Nishad S2-Oct-05 17:47 
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 

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.