Hello all,
I started porting to MFC feature pack to my exiting application to get better UI support. I made following changes .
Modify the base class.
CWinApp to CWinAppEx
CMDIFrameWnd to CMDIFrameWndEx
CMDIChildWnd to CMDIChildWndEx
Added following line of code in InitInstance
InitContextMenuManager();
InitShellManager();
InitKeyboardManager();
InitTooltipManager();
CMFCToolTipInfo ttParams;
ttParams.m_bVislManagerTheme = TRUE;
theApp.GetTooltipManager()->
SetTooltipParams(AFX_TOOLTIP_TYPE_ALL,
RUNTIME_CLASS(CMFCToolTipCtrl), &ttParams);
code build successfully, but while launching the application i am getting crash just after login dialog apperes. while debugging i found OnInitDialog works fine. But after the oninitdialog returns , it gave exception .i dont know where exactly the crash happens .
LoginDlg oDlg(strUserName, bstrLanguage,bstrDomainName);
if(oDlg.DoModal() == IDOK)
{.....}
BOOL LoginDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CoTranslateWindow(GetSafeHwnd());
.........
return true ;
}
i am getting exception like
Unhandled exception at 0x7787703d in MyApp.exe: 0xC0000005: Access violation writing location 0x0000000000030ff8.
Problem Event Name: APPCRASH
Application Name: MyApp.exe
Application Version: 5.23.0.0
Application Timestamp: 506d7f93
Fault Module Name: mfc90u.dll
Fault Module Version: 9.0.30729.4967
Fault Module Timestamp: 4b6bc34c
I know it is very abstract, but please help me .
Regards
BitsMax