LoadDCXIntoBitmap

#include "BIPCX.H"

                                                     

HBITMAP CALLBACK LoadDCXIntoBitmap( LPTSTR    lpszFileName,
UINT      wItem,
int far     *lpiError)

Description

Loads the n-th image from the DCX file into a bitmap. Does all low level calls internally in the DLL. To retrieve the last error, use the GetPCXErrorString(...).

Parameters

LPTSTR

lpszFileName;

Pointer to a null-terminated character stringthat names the DCX file path to be opened.

UINT

wItem;

The nth image, or page number, for multi page images.  Numbering is zero based, for example:  Page 2 would be referenced as ‘1’

int far

*lpiError;

Error code if return value is FALSE.

Additional Information

This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.

Return values

Handle of the bitmap. On error it is NULL and nErrCode is set.

Programming notes

None.

Requirements

Header :     Declared in BiPCX.h; include BiPCX.h.

Library :    Use BiPCX.lib.

DLLs :       BiPCX.dll.

Code example

None at present.