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!

ACCPAC and Borland C++ Builder

Status
Not open for further replies.

Silverf0x

Programmer
Jul 24, 2003
5
CA
Have anyone programmed their ACCPAC application with Borland C++ Builder (I'm using 6).

I'm fairly good with VB programming (using mostly xApi) and I wondered how to quick create a small program (in c++ builder) that would (for example) start the day-end using the IC0275 view. An example of this in VB would be:

Dim sess As New ACCPACXAPILib.xapiSession
sess.Open "ADMIN", "ADMIN", "SAMINC", Date, 0
Dim ICDEND1 As ACCPACXAPILib.xapiView
Set ICDEND1 = sess.OpenView("IC0275", "IC")
ICDEND1.Process
Set ICDEND1 = Nothing
Set sess = Nothing

If this is possible in C++ Builder, do I have to include stuff or register DLLs or things like that.

As I said, I'm very familiar with VB but not with C++ Builder...

Thanks in advance and sorry for my bad english.

-JP
 
I'm a Delphi programmer myself so I might be able to get you a little further. You'll want to create a wrapper around the xapi32.dll or the a4wcom.dll - which ever DLL the ACCPACXAPILib is associated with (check Tools|References in the VBA macro editor).

That will give you access to all of the same object types.

That should get you started.

Another way is to go strictly through the XAPI. In which case you could look at the various .bas modules from the SDK which has the VB translation of the DLL declarations.

DjangMan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top