🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #1321

GetDIBSizes error?!?!?

#1321
From: 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
Technical Details
Message-ID: <3ac87b4f_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!212.238.73.198

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,6aa786f767682fa8,start
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2001-04-02 06:26:02 PST
From: "Parlando" <mvliempd@parlando.nl>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: GetDIBSizes error?!?!?
Date: Mon, 2 Apr 2001 15:14:41 +0200
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 212.238.73.198
Message-ID: <3ac87b4f_2@dnews>
X-Trace: 2 Apr 2001 06:14:55 -0800, 212.238.73.198
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!212.238.73.198