![]() |
Error about Add CXTPToolBar |
Post Reply ![]() |
Author | |
suchout ![]() Groupie ![]() Joined: 29 September 2009 Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() 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
thanks
ps...oops~ my english is better????? .....hm....but it's only my think..^^;;ㅋㅋ sorry 전 한국인..부끄럽네요..ㅎㅎ^^
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You store m_pToolBar - why ? Do you manually destroy it or something ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
suchout ![]() Groupie ![]() Joined: 29 September 2009 Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() |
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 .
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |