On Fri, 25 May 2012 21:04:51 +0800 asmwarrior wrote:
a> I have found that when I have use such code in the rc file:
a>
a> content BITMAP "b.bmp"
a> tv BITMAP "a.bmp"
a>
a> Next, in the code, I have two wxBitmap objects will be constructed from these two files. But the second wxBitmap failed:
a> wxWidgets give a alert message saying the "tv" can't be loaded from resource file.
a> The strange thing is: the first wxBitmap can be constructed correctly.
a>
a> I have struggled several hours, and finally I found that if I change the file extension to capital letters.
a> (I also change the file extension in the folder), like below:
a>
a> content BITMAP "b.BMP"
a> tv BITMAP "a.BMP"
a>
a> This works OK, both two wxBitmap objects can be correctly initialized by
a> those two bitmaps in the resource file.
a>
a> My question is: Does the extension "BMP" or "bmp" cause this issue? Why?
It definitely shouldn't, file names are case-insensitive under Windows,
even in the resources. Can you reproduce the problem in a sample?
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/