Print Page | Close Window

CXTPToolBar LoadToolBar crashes in XP Pro

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=17603
Printed Date: 19 June 2025 at 11:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPToolBar LoadToolBar crashes in XP Pro
Posted By: sabapathy
Subject: CXTPToolBar LoadToolBar crashes in XP Pro
Date Posted: 25 November 2010 at 9:59am

The SDI application is working fine in Windows Vista and even in Win7 systems.

In a machine with Win XP Pro it is crashing on CMainFrame::OnCreate at the following function call saying "Encountered an Improper argument":

CXTPToolBar's LoadLoadToolBar

CXTPToolBar* pStdBarSample = (CXTPToolBar*)pCommandBars->Add(_T("Sample"), xtpBarTop);

 if (!pStdBarSample ||
  !pStdBarSample->LoadToolBar(IDR_SAMPLE_BAR)) //crashing at this line
 {
  TRACE0("Failed to create Toolbar\n");
  return -1;
 }

Any help would be greatly appreciable...
Thanks & Regards



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