Page 1 of 1
Bos Taurus - BT_BitmapLoadFile
Posted: Fri Sep 23, 2016 7:23 pm
by Pablo César
Hi Claudio,
BT_BitmapLoadFile does not load Bitmap (.bmp) file from resource file.
All JPG, GIF and PNG types works perfectly.
At rc file is
HMG Bitmap Images\hmg.bmp
hBitmap_aux := BT_BitmapLoadFile ("HMG")
msgdebug(hBitmap_aux) //
Here is returning value zero
Even changing Bitmap for BMP doesn't work...
B.Rgds
Re: Bos Taurus - BT_BitmapLoadFile
Posted: Fri Sep 23, 2016 8:02 pm
by srvet_claudio
I will check Pablo.
Re: Bos Taurus - BT_BitmapLoadFile
Posted: Fri Sep 23, 2016 10:42 pm
by srvet_claudio
You have defined the resource as:
NameRes BITMAP FileName
Bos Taurus - BT_BitmapLoadFile
Posted: Fri Sep 23, 2016 10:53 pm
by Pablo César
I found the error, Claudio. When is written BITMAP as you described: no problem but if you write Bitmap (not all upper case) then not recognizes it.
The strange and funny that for other types you can write as you want (upper, lower, camel case, mixed) and works perfectly but not for BMPs.
IMHO, should it works for BMPs (bitmap) written and interpreted by non sensitive case.
So it's seems not a bug at all but fails in some cases. Then my suggestion.
Re: Bos Taurus - BT_BitmapLoadFile
Posted: Sat Sep 24, 2016 2:30 am
by srvet_claudio
Pablo César wrote:I found the error, Claudio. When is written BITMAP as you described: no problem but if you write Bitmap (not all upper case) then not recognizes it.
The strange and funny that for other types you can write as you want (upper, lower, camel case, mixed) and works perfectly but not for BMPs.
IMHO, should it works for BMPs (bitmap) written and interpreted by non sensitive case.
So it's seems not a bug at all but fails in some cases. Then my suggestion.
BITMAP is a standard keyword of the compiler resource of C.
Bos Taurus - BT_BitmapLoadFile
Posted: Sat Sep 24, 2016 11:03 am
by Pablo César
Yes, you are right Dr. Soto. This is a resource compiler issue and resource type file (BITMAP) must it be in upper case for convention.