Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / "failed to create emty document" error msg when creating DialogBar

"failed to create emty document" error msg when creating DialogBar

"failed to create emty document" error msg when creating DialogBar
dongman 2013/05/11 06:19
I'd like to add Diagbar in SDI Document in MFC. (it's basic MFC document , just add to opencascade )

I just added Dialogbar named "IDD_DIALOGBAR_3" in Resouece View.

-- Header File ---

CDialogBar m_wndDialogbar;

-- Source File---

if ( !m_wndDialogbar.Create( this, IDD_DIALOGBAR_3,
          CBRS_RIGHT | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_HIDE_INPLACE, IDD_DIALOGBAR_3 ) )
     {
          TRACE0( "Failed to create dialog bar m_wndMyDialogBar\n" );
          return -1; // fail to create
     }

     m_wndDialogbar.EnableDocking( CBRS_ALIGN_ANY );
     EnableDocking( CBRS_ALIGN_ANY );
     DockControlBar( &m_wndDialogbar );

Then, I saw the following msg.
"failed to create empty document"

When repeat this again without Opencascade , It's no err msg.

I don't know the way to solve that.

Please let me know how to solve that.

Thank you in advance.

dongman 2013/05/11 08:05
I'm sorry.
I solved this problem myself.

Problem is that resource is not identified.

After cleaning build and rebuild this, I solved that problem.

Thank you for reading.
 
 
Latest news
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map