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 IamaSherpa 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

Status
Not open for further replies.

AlexJhb

MIS
Dec 13, 2001
90
ZA
I have a Delphi 7 app that was used with Accpac Plus to interface external data file, hash it and generate the import file for DOS AR. I now want to use the same extensive app with its many screens and database and modify it to validate data and create the batch in A4W. This requirement since the upgarde from DOS to Windows.

I want to use the XAPI to do this. I do not want to re-write this whole appliaction in VB. I am not an expert programmer, but know enough to have created this original app some time ago and have done a few small VB6 projects.

I understand I need to add the external component but according to the SDK that component is ACCPACXAPILib_TLB and I cannot find this. Even the Delphi example in the SDK does not compile and looks for this library. The only other one I see is XAPI32.lib elsewhere in another folder. The External API manual refers to C code that needs to be compiled. I do not have C at all.

Is there a way to use Delphi? How/what to do/where to find?
This is probably all simple stuff for experienced programmers, so would appreciate help from someone with a bit of patience. The old dog and new tricks story applies.
 
Is Accpac installed on the computer where you're running Delphi? If it is, you should be able to add the COMAPI to your project, that's what you do in VB and VBA.

Jay Converse
IT Director
Systemlink, Inc.
 
I do have 5.3 installed with sample database.

What I am confused about is that in the SDK Delphi examples, the sample EXE runs fine but the source code will not compile. I get the following 2 error messages.

[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'
 
Sorry, I'm not a Delphi guy. But I know there are some Delphi lurkers on this forum, we'll have to wait for them.

The only thing I can think of is to run C:\Program Files\Accpac\Runtime\REGACC.EXE which registers all the DLLs, and make sure that C:\Program Files\Accpac\Runtime is in the PATH.

Jay Converse
IT Director
Systemlink, Inc.
 
Thanks. The components are registered as I ran the register tool just in case. Also the path is ok.

Yes, when searching the forum I noticed a Delphi programmer and I think he/she works for Accpac a I have seen that name and I think it was on the Accpac developer forum. Somehow I think Ettienne als has Delphi experience but am not sure. Believe CRM is written in Delphi but not sure if those guys visit here.

I will wait and hold thumbs. But thanks for your help.
 
Found help on another forum.

[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'

I had to rename the unit to A4WCOM and then any references to this in the code as well. Then it worked. Will now test on a more comprehensive example.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top