Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / "no handler found form image type"

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

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. "no handler found form image type"
#4977
Posted by: 2004-08-12 20:50:39
""no handler found form image type" is the error message i have when i run my application. It is due to the icon.

My fonction in order to create my main frame is simple:

{
    wxMenu *FileMenu = new wxMenu;
    wxMenuBar *MenuBar = new wxMenuBar;
    wxIcon _icon;
   
    FileMenu->Append(ID_MAINWIN_QUIT, "&Quit");
    MenuBar->Append(FileMenu, "&File");
   
    _icon.CopyFromBitmap(wxBitmap(wxT("C:\\dev-cpp\\Goofy.bmp"), wxBITMAP_TYPE_ANY));
   
    CreateStatusBar(2);
   
    SetIcon(_icon);
    SetMenuBar(MenuBar);
    SetStatusText("Hello World!");
}


So i don't understand why i have this message. Someone could help me please ?
Message2. Re: "no handler found form image type"
#5013
Posted by: upCASE 2004-08-25 01:57:04
Hi!
Use wxInitAllImageHandlers() before trying to load the image.
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Thu 2024-3-28  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0