Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPToolBar LoadToolBar crashes in XP Pro
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPToolBar LoadToolBar crashes in XP Pro

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


Joined: 12 November 2009
Location: India
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote sabapathy Quote  Post ReplyReply Direct Link To This Post Topic: CXTPToolBar LoadToolBar crashes in XP Pro
    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
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.047 seconds.