I am new to delphi. I need to get delphi calling the rightfax com from delphi code.
Here is the delphi doc I am using to access the rightfax com api:
To import an Automation controller's type library,
- Choose Project|Import Type Library.
- Select the type library from the list.
The dialog lists all the libraries registered on
this system. If the type library is not in the list, choose the Add
button, find and select the type library file, choose OK, and repeat
step 2. Note that the type library could be a standalone type library
file (.TLB, .OLB), or a server that provides a type library (.DLL,
.OCX, .EXE).
- Choose the Palette page on which this server will reside.
- Check Generate Component Wrapper, which creates a TComponent wrapper that allows you to install the server that the type library describes on the Component palette.
- Choose Install.
Specify where you want the type library to
reside, either in an existing package or new package. This button is
grayed out if no component can be created for that type library.
When I do this, the RightFax Com API Type library is available. I am importing it into a new package. I get a messagebox "Package
packagename.bpl will be built then installed. Continue?" When I click "yes", then I get the following errors:
[Error] RFCOMAPILib_TLB.pas(3814): Identifier redeclared: 'TotalPages'
[Error] RFCOMAPILib_TLB.pas(3819): Identifier redeclared: 'IsReceived'
[Error] RFCOMAPILib_TLB.pas(3827): Identifier redeclared: 'FaxFilename'
[Error] RFCOMAPILib_TLB.pas(3845): Identifier redeclared: 'FaxStatus'
[Error] RFCOMAPILib_TLB.pas(3847): Identifier redeclared: 'FaxDisposition'
[Error] RFCOMAPILib_TLB.pas(3848): Identifier redeclared: 'FaxTerminationStatus'
[Error] RFCOMAPILib_TLB.pas(5770): '[' expected but ')' found
[Fatal Error] rightfaxtest4.dpk(33): Could not compile used unit '..\Imports\RFCOMAPILib_TLB.pas'
I am not getting hits when scanning for these errors.
Can anyone tell how how to get this working in delphi? I have it working in c# now, but I also need it working in delphi.
If I just run the code found here:
http://www.captaris.com/DeveloperProgram/forums/thread/12284.aspx
I get an error on the "newfax := rfFaxAPI.CreateObject[5]; // create fax"
"User or object does not exist"
thanks,
Suzanne