Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why Does My App Crash in 95/98 but not in XP (CContext fails)

Status
Not open for further replies.

bulgakov

Programmer
Apr 24, 2003
26
GB
All,
I have an app developed in XP using visual studio 6. All
works fine. It is an MDI that has a multidoctemplate
setup in the App class.

In 95/98 however I run the app and it crashes in the MFC

the stack is
CMDIChildWnd::OnCreate
CFramWnd::OnCreateClient
CFrameWnd::OnCreateHelper

It appears that in CFramWnd::OnCreateClient the instance
of CContext has not been properly instantiated,
it has a value of 0x2d. Has anyone used MDI's in 95/98 that
could help me out ? Thanks in advance.

Marcus
 
maybe you shou.ld install MFC on that computers

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
>>maybe you shou.ld install MFC on that computers

errm how do you think I am debugging it ?

the answer is in the followinf function......

CChildFrame::preCreateWindow(CREATESTRUCT & cs)
{
cs.dwExStyle = WS_EX_WINDOWEDGE; //remove this line


this is not supported in windows 95 or 98 !

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top