Hi,
I am trying to call some functions from dll developed in VC++, but I can not even create object in VFP for this DLL.
I already tried with DECLARE..., and CREATEOBJECT, but does not work.
Any suggestion?
What kind of DLL is it? There are many kinds of DLLs and some simply can't be called from VFP. Do you have any sample code that "calls" this DLL from any language? (e.g. VC++, VB, Access, etc.)
Yes, I have samples in VB.
The next piece of code creates the session manager object and is used to open a connection and begin a session with QuickBooks
Dim SessionManager As New QBFC2Lib.QBSessionManager
SessionManager.OpenConnection cAppID, cAppName
SessionManager.BeginSession "", omDontCare
This assumes that "QBFC2Lib.QBSessionManager" is in the registry that way, and that you have appropriate variables declared and intialized for cAppID, cAppName and omDontCare.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.