Hi,
I'm using the FAX SDK and I'm trying to send a color fax from a windows bitmap (24bit color) using a Class1 modem.
I previously used the OCX from VB and it worked ok.
I modified the example (FaxDem32\Sample Source Codes\DLL\Fax C++ SDK\SIMPLE\) and tried to send the fax. The program is stopping with a -105 error on SendFaxNow call.
Here is the struct for CreateFax call:
sFaxParam.PageNum = 1;
sFaxParam.Resolut=RES_NOCHANGE;
sFaxParam.Width = PWD_1728;
sFaxParam.Length = PLN_NOCHANGE;
sFaxParam.Compress = DCF_1DMH;
sFaxParam.Binary = BFT_NOCHANGE;
sFaxParam.BitOrder = BTO_FIRST_LSB;
sFaxParam.Ecm = ECM_DISABLE;
sFaxParam.ColorFax = CFAX_ENABLE;
sFaxParam.ColorType = CFAX_TRUECOLOR;
sFaxParam.SendMode = SEND_MH_ALWAYS;
strcpy(sFaxParam.RemoteNumber,PHONE_NUMBER);
sFaxParam.Send = TRUE;
sFaxParam.DeleteFiles = TRUE;[/code]
I tried all the configuration for sFaxParam.Ecm but with the same result.
the call to Create fax:
fax = CreateSendFax(REGTYPE_COLORFAX,&sFaxParam);
the call to set fax page image:
stat = SetFaxImagePage( fax, 0, IMT_FILE_BMP, &FaxPage, 0 );
both calls works ok.
Please help.
PS: I can send the entire program or the image if needed.
Thanks,
Bogdan.