Print Page | Close Window

CXTPFrameWnd::OnCreate fails

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=19263
Printed Date: 26 April 2024 at 7:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPFrameWnd::OnCreate fails
Posted By: BastianPL
Subject: CXTPFrameWnd::OnCreate fails
Date Posted: 04 December 2011 at 5:39am
Hope anyone can help me.

I've just installed VS2010 on my machine and reinstalled XTP.
Project builds fine, but once started I've got an assertion in CXTPFrameWnd::OnCreate.
which stops at:

 AFX_ISOLATIONAWARE_STATICLINK_FUNC(HWND ,CreateWindowExA,(DWORD dwExStyle,LPCSTR lpClassName,LPCSTR lpWindowName,DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HMENU hMenu,HINSTANCE hInstance,LPVOID lpParam),(dwExStyle,lpClassName,lpWindowName,dwStyle,X,Y,nWidth,nHeight,hWndParent,hMenu,hInstance,lpParam),NULL)

I've checked differencies with sample XTP projects in MainFrame, Application cpp, and stdafx and cant find any reason why this may fail?




-------------
Bastian



Replies:
Posted By: Didi
Date Posted: 18 June 2014 at 9:46am

Hi,
I know, this thread is very old. Wink
But knows anybody a good solution for this problem? I get it sporadically and I don’t know why. Only at about every tenth start the program crashes with
Bastian's error.

Thanks,

Didi

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net