CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2005
    Posts
    133

    Custom CStatusBar

    Hi i created a custom CStatusBar with an extra indicator, but when i add the indicator to the indicators array, at runtime i got and error :Failed to create empty document and my program closes.

    How can i prevent this error?

    I'm using MFC with VS .NET 2005
    Louis-Philippe Frenette
    Arobas Informatique Granby
    http://www.arobasinformatique.com

  2. #2
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: Custom CStatusBar

    Hint. Put a breakpoint in your mainframe's OnCreate and step into the function that fails. Most likely , since you have touched the indicators, it is a function that uses the indicators that fails.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured