Page 1 of 1

using xpm's

Posted: Thu Apr 24, 2008 5:20 pm
by Qasim
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.

Posted: Thu Apr 24, 2008 5:26 pm
by Qasim
Hi. Just found it.
I renamed the file after creating it, and got every thing else messed up.