Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Toolbar icons

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

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Toolbar icons
#5688
Posted by: 2005-01-07 00:09:16
I have been trying for ages to get these icons working.  I think i am the closest I have been, but I cant get the resource file to compile.

I am only trying to load only one icon for now "Icon2.bmp".  Here is my resource file:

#include "wx/msw/wx.rc"
icon2 BITMAP "Icon2.bmp"

And finally the line where I initiate the wxBitmap:

wxBitmap bitmap = wxBITMAP(icon2);

I have also tried other calls such as:

wxBitmap *bitmap = new wxBitmap(icon2);
wxBitmap *bitmap = new wxBitmap("Icon2.BMP",wxBITMAP_TYPE_BMP);

When I compile i get:

[Build Error] [myApp_private.res]Error 1

I really cannot work out what is wrong and its making me a bit angry now.  Can anyone tell me what i may have doen wrong from this information?
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0