BiDIB.dll specific error codes

The last error code in the BiDIB.dll can be retrieved by the BitmaniError function.

The BitmaniErrorString function can be used to get the error message associated with error code.

 

Please note that each DLL has a different Error code function and Error String function.

Error Code number

Error Code

Meaning

0

IOK

Operation was successful.

1

INOTENOUGHMEMORY

Not enough memory to allocate block.

2

IDCCREATEERROR

Unable to create DC.

3

IFILEOPENERROR

Can’t open the file.

4

IFILEIOERROR

General I/O error in reading or writing.

5

ICLIPOPENERROR

Can’t open clipboard.

6

ICLIPRECERROR

Could not receive from clipboard.

7

IBITCOPYERROR

Can’t copy bits from bitmap.

8

IPARAMETERERROR

Parameter error.

9

IFILEFORMAT

Invalid file format.

10

ICREATEPALETTE

Can’t create palette.

11

ICREATEBITMAP

Can’t create bitmap.

12

IMETAMAPMODEERROR

Mapping mode is improperly set in metafile.

13

IINVALIDBITSPIXEL

Invalid bit/pixel value.

14

IFORMATNOTFOUND

Format not found in clipboard file.

15

IGETOBJECT

Can’t get bitmap parameters.

16

IMETAERROR

Can’t create metafile.

17

ILOCKMEMORY

Can’t lock global memory.

18

IDIBCOMPRESSED

DIB must be uncompressed.

19

ISIZEERROR

Invalid DIB size.

20

IREJECTPARAM

Paramater error in Dithering.

21

IBADBITPIXEL

Bad bit/pixel value in DIB header.

22

IBADCAPIXPARAM

The CAPIX algorithm creates only 1 or 4 bit image.

23

IMG_PRINTERDC

Could not get printer DC.

24

IMG_PRINTERRASTER

Device not capable to handle raster.

25

IMG_PRINTERAPPDC

Could not get dispaly DC.

26

IMG_PRINTERESC4

Escape failed SETABORTPROC.

27

IMG_PRINTERESC5

Escape failed STARTDOC.

28

IMG_PRINTERESC6

Escape failed NEXTBAND.

29

IMG_CLIPBOARD

Clipboard error.

30

IMG_PRINTCANCEL

User canceled the printing.

31

INOTHINGTODO

Nothing to do.

32

IPAGENOTFOUND

Unable to find a scanned page for cropping.