🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
1 messages
1 total messages Started by Parlando Mon, 02 Apr 2001 13:14
GetDIBSizes error?!?!?
#1321
Author: Parlando
Date: Mon, 02 Apr 2001 13:14
25 lines
1612 bytes
I want to use the function GetDIBSizes(HBITMAP Bitmap, int &InfoHeaderSize,
int &ImageSize)..... But when I want to compile the compiler doesn't agree
with this line :(

This is the code as I use it:
---------------------------
int HeaderSze, ImageSze;
Graphics::TBitmap *TmpBmp = new Graphics::TBitmap();
TmpBmp->LoadFromFile(Filename);
GetDIBSizes(TmpBmp->Handle,&HeaderSze,&ImageSze);
--------------------------

And the error it gives is:
[C++ Error] Unit.cpp(72): E2034 Cannot convert 'int *' to 'unsigned int'
--------------------------

That doesn't make sence does it? As the help file say's it needs a int
*.....
Can this be a failure in the graphics header or something?

I alsow tried using a unsigned int, and then the compiling goes well... But
then the HeaderSze and ImageSze don't change in value :(

Pleaze help me with this agony.
TIA
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads