Hi,
I am trying to load bitmap as resource. Below is the code I have added
In .rc file
TEST_FINAL BITMAP "final.bmp"
In .cpp file
wxStaticBitmap *m_FinalBitMap = new wxStaticBitmap(this, wxID_ANY, wxBitmap(wxT("TEST_FINAL"), wxBITMAP_TYPE_BMP_RESOURCE), wxDefaultPosition, wxSize(90,90));
The program compiles and runs fine but when the dialog is opened the bmp image is not displayed on dialog and it throws error "can't load bitmap 'TEST_FINAL' from resources! check .rc file".
The .rc file and bmp images are in same folder. One more thing is, if we use absolute path of image then bitmap is loaded properly.
Please help me out... Any clue is highly appretiated.
Regards,
Praveen