Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delphi 7 & Accpac XAPI 1

Status
Not open for further replies.

AlexJhb

MIS
Dec 13, 2001
90
ZA
Want to use the Accpac External API to access Accpac tables and views like in VB. When I try to compile the sample Delphi code I get these two errors.

[Error] A4WCOM.PAS(1): Unit identifier 'ACCPACXAPILib_TLB' does not match file name.
[Fatal Error] BANK_DEL.PAS(7): Could not compile used unit 'A4WCOM.PAS'

There is no 'ACCPACXAPILib_TLB' file around.

I am new to Delphi 7 (in fact to programming) and like Delphi. I would like to stay with it and not move to VB as I am adapting this app to the Windows version of Accpac and because of time do not want to re-write it in VB.


 
What the compiler is saying is that you have a file named A4WCOM.PAS but the unit declared in it is ACCPACXAPILib_TLB.

Open the file A4WCOM.PAS, in the first line (1) of it you'll see: unit ACCPACXAPILib_TLB;

change it to: unit A4WCOM;

Note: if the units are bad named I'll not trust the whole packet too much.

buho (A).
 
Thanks buho. That worked and it now compiles and runs.
 
Is there a manual about what is necessary and enough to prepare 'Borland C++ 6 Enterprise' to make programs that could access to ACCPAC 4.2A (ACCPAC XAPI), or if anybody ready to give me the instructions about technology and files needed? Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top