Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / XmlResource and XP

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. XmlResource and XP
#5071
Posted by: Rainer 2004-09-13 23:03:50
Hi,

I've a small application loading the menu from a XML resource file.

It does following:

in myApp::OnInit(): (derived from wxApp)
    wxXmlResource::Get()->InitAllHandlers();
    wxXmlResource::Get()->Load("menu.xrc")); // works fine the file will be found

in myFrame::myFrame(): (derived from wxFrame)
   wxMenuBar* menuBar    = wxXmlResource::Get()->LoadMenuBar("menu");

It works find unter LINUX, but I have some trouble under XP. It loads the menu, the user can work with it.
But at termination the application windows disappear but the application is still running. (can be seen in the task manager)

Has anyone an simple example works unter XP?
Or some ideas?

Rainer

Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0