Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Who can tell me how to solve this problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Who can tell me how to solve this problem

 Post Reply Post Reply
Author
Message
qinzhw View Drop Down
Newbie
Newbie


Joined: 25 November 2005
Location: Colombia
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote qinzhw Quote  Post ReplyReply Direct Link To This Post Topic: Who can tell me how to solve this problem
    Posted: 30 November 2005 at 10:51pm

2005-11-30_225223_tvEx.rarin this sample,when I click the "Mail" tab button, the application will be terminated, why? the codes were attached as follows.thanks.

2005-11-30_224703_tvEx.rar

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2005 at 4:55am

hints for funture:

If you see assert,click ignore/repeat and check call stack.

 

The problem line is

pFrame->SetActiveView((CView*)pWnd->GetDescendantWindo w(AFX_IDW_PANE_FIRST));

because pWnd->GetDescendantWindow(AFX_IDW_PANE_FIRST) returns CSplitterWnd and not CView for your frame.

comment it.

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
qinzhw View Drop Down
Newbie
Newbie


Joined: 25 November 2005
Location: Colombia
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote qinzhw Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2005 at 7:06am
Thank you very much , oleg !
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.