Bos Taurus - BT_BitmapLoadFile

Moderator: Rathinagiri

Post Reply
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Bos Taurus - BT_BitmapLoadFile

Post by Pablo César »

Hi Claudio,

BT_BitmapLoadFile does not load Bitmap (.bmp) file from resource file. :shock:

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
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Bos Taurus - BT_BitmapLoadFile

Post by srvet_claudio »

I will check Pablo.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Bos Taurus - BT_BitmapLoadFile

Post by srvet_claudio »

You have defined the resource as:
NameRes BITMAP FileName
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Bos Taurus - BT_BitmapLoadFile

Post 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. :o

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. :shock:

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
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Bos Taurus - BT_BitmapLoadFile

Post 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. :o

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. :shock:

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.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Bos Taurus - BT_BitmapLoadFile

Post 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.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply