Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Error about Add CXTPToolBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error about Add CXTPToolBar

 Post Reply Post Reply
Author
Message
suchout View Drop Down
Groupie
Groupie


Joined: 29 September 2009
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote suchout Quote  Post ReplyReply Direct Link To This Post Topic: Error about Add CXTPToolBar
    Posted: 15 October 2009 at 3:38am

Hello everybody!

First, I'd like to beg your pardon that I'm quite poor in English. 

I developed a MDI application which  make new User-Interface by call DLL.
 
when i made Project , a MenuBar and a ToolBar was basically created.
 
and then i add  new  CXTPToolBar in Main Project!.
 
like this:
  m_pToolBar = (CXTPToolBar*)m_pCmdBars->Add(_T(""), xtpBarTop);
  if (!m_pToolBar ) {
   TRACE0("Failed to create toolbar\n");
   return;
  } 
 
in Dll
I  set properties and add buttons
 
so far it has not problem
 
but Cause Error in the moment of the program is exitting.
 
show up this message:
debug Assertion Failed!
File:
c:\package\temp\eval\toolkitpro\source\commandbars\xtpdockstate.cpp
line : 1208
 
i am not able to solve this problem ㅠㅠ please help me~~
 
thanks
 
ps...oops~ my english is better????? .....hm....but it's only my think..^^;;ㅋㅋ sorry 전 한국인..부끄럽네요..ㅎㅎ^^
 
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: 16 October 2009 at 5:34am
Hi,
 
You store  m_pToolBar - why ? Do you manually destroy it or something ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
suchout View Drop Down
Groupie
Groupie


Joined: 29 September 2009
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote suchout Quote  Post ReplyReply Direct Link To This Post Posted: 18 October 2009 at 9:36pm
Hi. Thanks
 
m_pToolBar is just instance for check about correctly make Toolbar
 
and i don't do anything manually
 
Just add new Toolbar and add buttons in there
 
this is sample source
 
if (!pToolBar || !pToolBar->LoadToolBar(IDR_MAINFRAME))
 {
  TRACE0("Failed to create toolbar\n");
  return -1;
 }
 
but my source is
 
if (!pToolBar )
 {
  TRACE0("Failed to create toolbar\n");
  return -1;
 }
 
Not use LoadToolBar(IDR_MAINFRAME),  but add buttons dynamically )
 
and i'm trying for coment (/*  */) that toolbar add code area
 
then the exit process is no problem, but none coment -> error
 
hm....i feel heavy..ㅠㅠ because my explane is so~oooooooo bad....ㅠㅠ
 
thank you .
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.