Board index » cppbuilder » invoking bitmaps

invoking bitmaps


2004-11-13 11:39:06 AM
cppbuilder63
The LoadBitmap function has the following parameter
HINSTNACE: The instance handle of the module whose executable
file contains the bitmap to be loaded.
What is a module?
The bitmap I want to use is a separate file, it is not in an executable
file. How do I use this function?
Thank you.
 
 

Re:invoking bitmaps

"Jack Sawatzky" < XXXX@XXXXX.COM >wrote in message
Quote
The LoadBitmap function has the following parameter

HINSTNACE: The instance handle of the module whose executable
file contains the bitmap to be loaded.

What is a module?

The bitmap I want to use is a separate file, it is not in an executable
file. How do I use this function?

Thank you.
If you want to load a bitmap from an external file, LoadBitmap is not the
function for you. LoadBitmap, like LoadString and other is for loading from
a resource in an exe or dll.
 

Re:invoking bitmaps

Jack,
In the BC5 software there are two examples how to handle external bitmaps:
BC5\examples\series\GDIDIB
BC5\examples\series\GDIPRINT
Looking to this examples I succeeded in loading external bitmaps and also sent
them to a printer.
Jan Vernimmen.
Gary Setter wrote:
Quote
"Jack Sawatzky" < XXXX@XXXXX.COM >wrote in message
news: XXXX@XXXXX.COM ...

>The LoadBitmap function has the following parameter
>
>HINSTNACE: The instance handle of the module whose executable
>file contains the bitmap to be loaded.
>
>What is a module?
>
>The bitmap I want to use is a separate file, it is not in an executable
>file. How do I use this function?
>
>Thank you.

If you want to load a bitmap from an external file, LoadBitmap is not the
function for you. LoadBitmap, like LoadString and other is for loading from
a resource in an exe or dll.

 

{smallsort}

Re:invoking bitmaps

Quote
If you want to load a bitmap from an external file, LoadBitmap is not the
function for you. LoadBitmap, like LoadString and other is for loading from
a resource in an exe or dll.



Thanks Gary. What is the function for me?
 

Re:invoking bitmaps

Jan Vernimmen wrote:
Quote
Jack,
In the BC5 software there are two examples how to handle external
bitmaps:
BC5\examples\series\GDIDIB
BC5\examples\series\GDIPRINT
Looking to this examples I succeeded in loading external bitmaps and
also sent them to a printer.

Jan
I looked in my examples folder, I did a FIND search, and I did a search
on the Borland website
and couldn't find it. Could you possibly email the GDIDIB file to
XXXX@XXXXX.COM ?
Thanks
Jack