Support Center

DLL Interface FaxSchedule error return codes

Jeff List Mar 22, 2012 12:17PM EDT

I'm getting a -5 or a -4 for the dwID returned from a call to FaxSchedule.
I don't find anything in the help file that documents the meaning of these codes...

(Issue arises when working code is compiled in Delphi XE using unicode strings. Values in SEND_FAX structure are identical to non-Unicode results but still getting -5/-4 codes...)

1 Data Techniques Response and 1 Community Response

Up 3 Rated Down
DTI Support  Data Techniques Employee Mar 22, 2012 12:24PM EDT

Hello,

Here's a list of the error codes for the DLL from the help:

// FaxMan DLL Interface Return Values

#define FAX_OK 0
#define FAX_ERR_BADAPPINFO -1
#define FAX_ERR_NOSERVER -2
#define FAX_ERR_NODEL -3
#define FAX_ERR_BADSENDFAX -4
#define FAX_ERR_BADDATETIME -5
#define FAX_ERR_BADFILETYPE -6
#define FAX_ERR_BADCOLOR -7
#define FAX_ERR_BADFILE -8
#define FAX_ERR_BUFTOOSMALL -9
#define FAX_ERR_NOFILEORCOVER -10
#define FAX_ERR_NOPDFSUPPORT -11
#define FAX_ERR_LOWMEMEMORY -12
#define FAX_ERR_PDFIMPORTPROBLEM -13


Is you are getting 4 or 5 then likely your SEND_FAX structure is messed up somehow. The -4 indicates the signature of the SendFax structure is not correct.

If you are compiling as UNICODE I would best the char sizes of the structure are being calculated as WIDE chars instead of ANSI chars.

Thanks for your interest in our products and please let us know if you have any questions.

Sincerely,
Sean
Data Techniques Support

Up 0 Rated Down
Jeff List  Data Techniques Employee Mar 22, 2012 02:53PM EDT

Sean:

Many thanks. Didn't realize that the "main" error codes applied to FaxSchedule.

Jeff List

This question is closed to new answers.

Contact Us