Search found 88 matches

by ColleenKobe
Wed Apr 06, 2016 6:18 pm
Forum: C++ Development
Topic: "Can't load bitmap from resources" Error
Replies: 33
Views: 4324

Re: "Can't load bitmap from resources" Error

iwbnwif wrote:You can try importing the MSVC project into Codelite.

It doesn't always work perfectly but it is worth a try!
Hi, iwbnwif,

It *was* worth a try. But when I tried that, I got an error message that said, "Corrupted workspace file".

Oh, well. Thanks anyway!
Colleen
by ColleenKobe
Tue Apr 05, 2016 6:25 pm
Forum: C++ Development
Topic: "Can't load bitmap from resources" Error
Replies: 33
Views: 4324

Re: "Can't load bitmap from resources" Error

Colleen, Also keep in mind that the samples folder and the official documentation on the wxwidgets.org website are the only 2 sources of information you need to look at. Check. Also, make sure you understand the code in the different wxWidgets sample - where the different things are and how differe...
by ColleenKobe
Tue Apr 05, 2016 3:39 pm
Forum: C++ Development
Topic: "Can't load bitmap from resources" Error
Replies: 33
Views: 4324

Re: "Can't load bitmap from resources" Error

ONEEYEMAN wrote: Look inside the wxWidgets folder. Inside there is a folder called 'samples'. If you look inside that folder you will see a number of different samples which are the starting point of work with anything, including you own project.
Wonderful! Thank you, ONEEYEMAN. I will do this.
by ColleenKobe
Tue Apr 05, 2016 3:38 pm
Forum: C++ Development
Topic: "Can't load bitmap from resources" Error
Replies: 33
Views: 4324

Re: "Can't load bitmap from resources" Error

I'm especially confused because the program compiles. Why doesn't it flag an error if I give a method parameter a variable that's the wrong type? That definitely shouldn't happen and i'm pretty sure that's not what's happening - there must be some other effect at work. Can you post the whole code y...
by ColleenKobe
Tue Apr 05, 2016 12:18 pm
Forum: C++ Development
Topic: "Can't load bitmap from resources" Error
Replies: 33
Views: 4324

Re: "Can't load bitmap from resources" Error

I have no idea what that code is. I didn't write it. It's a built-in method in wxWidgets, or somewhere. This is all very weird. What type is Desired_Picture? All SetBitmap() methods of wxWidgets classes i find take a wxBitmap as parameter. But when i read the code correctly, you're passing a wxStri...
by ColleenKobe
Tue Apr 05, 2016 12:11 pm
Forum: C++ Development
Topic: "Can't load bitmap from resources" Error
Replies: 33
Views: 4324

Re: "Can't load bitmap from resources" Error

ONEEYEMAN wrote:Hi, Colleen,
Did you program ever call wxInitAllImageHandlers()?

Thank you.
Hi, ONEEYEMAN,

No, my program never calls wxInitAllImageHandlers. Is it supposed to?

Colleen
by ColleenKobe
Mon Apr 04, 2016 8:00 pm
Forum: C++ Development
Topic: "Can't load bitmap from resources" Error
Replies: 33
Views: 4324

Re: "Can't load bitmap from resources" Error

Where would I find the call to wxBitmap::LoadFile()? I just assumed you had a call to wxBitmap::LoadFile() in the method Desired_Picture->SetBitmap(). If not, please post the code for that method. Post the code where you load bitmap from file. Without posting your code, its impossible to further he...
by ColleenKobe
Mon Apr 04, 2016 7:43 pm
Forum: C++ Development
Topic: "Can't load bitmap from resources" Error
Replies: 33
Views: 4324

Re: "Can't load bitmap from resources" Error

evstevemd, thank you for your reply! I would put image in same folder as exe and use relative path to load files. Suppose I have subfolder images in exe path then wxBitmap bmp1("images/bitmap1.png", wxBITMAP_TYPE_PNG); //you have bmp1 as valid bitmap, do with it whatever you want I moved the *.jpg a...
by ColleenKobe
Mon Apr 04, 2016 5:56 pm
Forum: C++ Development
Topic: "Can't load bitmap from resources" Error
Replies: 33
Views: 4324

Re: "Can't load bitmap from resources" Error

Hi, doublemax,

Thank you for the quick reply!

Where would I find the call to wxBitmap::LoadFile()?
by ColleenKobe
Mon Apr 04, 2016 4:26 pm
Forum: C++ Development
Topic: "Can't load bitmap from resources" Error
Replies: 33
Views: 4324

"Can't load bitmap from resources" Error

Hi! I am a beginner wxWidgets/CodeLite/Windows programmer. Today I am having problems getting what I thought would be a simple graphics program to work. I have created a wxListBox called Icon. It contains the following Choices: Question Mark; Asterisk; Exclamation Point; Superman; Batman; and Homer....
by ColleenKobe
Tue Mar 29, 2016 6:00 pm
Forum: Compiler / Linking / IDE Related
Topic: How Do I Fix "g++: error: `wx-config: No such file or directory"?
Replies: 9
Views: 5032

Re: How Do I Fix "g++: error: `wx-config: No such file or directory"?

@DavidHart--Brilliant! Thank you! I will fix my batch file. @catalin--Wonderful! Thank you for the link to the installation document! I will explore than now. @doublemax--Sounds like you are quite an expert. I will remember that the next time I have questions. ;-) Regarding CodeLite--what do you lik...
by ColleenKobe
Tue Mar 29, 2016 2:05 pm
Forum: Compiler / Linking / IDE Related
Topic: How Do I Fix "g++: error: `wx-config: No such file or directory"?
Replies: 9
Views: 5032

Re: How Do I Fix "g++: error: `wx-config: No such file or directory"?

@doublemax--thank you for replying to my post, and for giving me helpful suggestions. I took your advice and modified the value of my environment variable WXCFG until wx-config accepted WXCFG as being valid. Then I ran the wx-config --cxxflags command. Here is what I got. Microsoft Windows [Version ...
by ColleenKobe
Mon Mar 28, 2016 5:08 pm
Forum: Compiler / Linking / IDE Related
Topic: How Do I Fix "g++: error: `wx-config: No such file or directory"?
Replies: 9
Views: 5032

How Do I Fix "g++: error: `wx-config: No such file or directory"?

Hi. I'm trying to compile a "Hello World" program that uses wxWidgets, but I'm getting errors, and I wonder if someone can identify what I need to do to make the program compile. I'm using wxWidgets version 3.0.2, g++ 4.9.3, and Netbeans 8.1. I am following the steps on https://wiki.wxwidgets.org/Co...