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
Bos Taurus - BT_BitmapLoadFile
Moderator: Rathinagiri
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Bos Taurus - BT_BitmapLoadFile
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: Bos Taurus - BT_BitmapLoadFile
I will check Pablo.
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: Bos Taurus - BT_BitmapLoadFile
You have defined the resource as:
NameRes BITMAP FileName
NameRes BITMAP FileName
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Bos Taurus - BT_BitmapLoadFile
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.
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.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: Bos Taurus - BT_BitmapLoadFile
BITMAP is a standard keyword of the compiler resource of C.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.
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Bos Taurus - BT_BitmapLoadFile
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.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein