BiImage.ocx specific error codes

The last error code in the BiImage.ocx can be retrieved by the GetLastColorConvertError  method. The nColorConvertErr method can be used to get the error message associated with error code.

Please note that each OCX has a different Error code method and Error String method.

Error Code number

Error Code

Meaning

0

CCNOERROR

No error occurs.

1

CCDUPLICATEERROR

Error Duplicate DIB.

2

CCIINVALIDFORMAT

Invalid conversion format.

3

CCCONVERT32BIT

Error convert DIB to 32 bit.

4

CCINVALIDPARAMETER

Invalid parameter.

5

CCINVALIDBUFFERSIZE

Invalid buffer size.

6

CCCREATEDLG

Error creating progress dialog.

7

CCNOBIDLGS

BiDlgs.dll is missing.

8

CCCONVERSIONERROR

Color conversion error