Hello,
I'm new in CB. I've got a strange problem related with path. I have these code ran succesfully in wxDevC++
wxImage* noPhotoImage = new wxImage("data/images/no_photo.jpg");
but when I compiled it using CB and then ran its exe, it said that it couldn't find no_photo.jpg.
but it ran when I added these codes
folder = ((wxStandardPaths&)wxStandardPaths::Get()).GetDataDir();
wxImage* noPhotoImage = new wxImage(folder + "/data/images/no_photo.jpg");
but I don't want to use the last method. I don't know what wrong is. Could you help me to overcome this problem?
Many Thanks