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...)
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.
Data Techniques Support
Many thanks. Didn't realize that the "main" error codes applied to FaxSchedule.
This question is closed to new answers.