using xpm's Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Qasim
Knows some wx things
Knows some wx things
Posts: 29
Joined: Wed May 23, 2007 3:41 pm
Location: London

using xpm's

Post by Qasim » Thu Apr 24, 2008 5:20 pm

hi, I am trying to create bitmap from an xpm file, and not getting any where. This is what I am doing

Code: Select all

#include "mydir/xpmdata/cursor.xpm"

void MyFrame::CreateControls()
{
wxBitmap cursor(cursor_xpm, wxBITMAP_TYPE_XPM);
}
but doing so does not creats the bitmap and keeps on giving me error "cursor_xpm" undeclared identifer. Do I need to include any extra header file for using xpm's ?
Any help will be appreciated.
Who doubts nothing, Knows nothing

Qasim
Knows some wx things
Knows some wx things
Posts: 29
Joined: Wed May 23, 2007 3:41 pm
Location: London

Post by Qasim » Thu Apr 24, 2008 5:26 pm

Hi. Just found it.
I renamed the file after creating it, and got every thing else messed up.
Who doubts nothing, Knows nothing

Post Reply