Does anybody can make it sure that: vu2(3) does not send 'PretranslateMessage' to AGSI DLL ? So,AGSI DLL can not use KeyBoard strokes! BTW,in MSDN's TN011: 'Using MFC as Part of a DLL' it is said that: Note that the CWinApp::Run mechanism doesn't apply to a DLL, since the application owns the main message pump. If your DLL brings up modeless dialogs or has a main frame window of its own, your application's main message pump must call a DLL-exported routine that calls CWinApp::PreTranslateMessage. Thank you