Hi,
I am working with QuickBooksSDK. Manufacturer has provided a dll (qbfc2_1.ddl). This DLL has only 2 classes and a lot of interfaces. I can create object of these class, but I can't (or I don't know) use interfaces. Every time I get message: "OLE error code: 0x80020006:Unknown name".
My question is how to use the interfaces of the classe from DLL not programmed in FoxPro?
Here is part of source:
store "Vendor_FoxPro" to cAppID
store "Vendor_FoxPro" to cAppName
* Registered Class: QBSessionManager
objQB = createobject("QBFC2.QBSessionManager"
objQB.OpenConnection (cAppID, cAppName)
objQB.BeginSession ("", 2) && 2-omDontCare
* Create the message set request object.
* This function is in the class QBSessionManager
requestMsgSet = objQB.CreateMsgSetRequest(1,1)
*AppendVendorQueryRq is interface
*Here I get an error
VendorQuery = objQB.AppendVendorQueryRq
ListQueryXML = requestMsgSet.ToXMLString
ListResponse = objQB.DoRequests(requestMsgSet)
If isnull(ListResponse.ResponseList) then && Is Nothing
Exit
EndIf
Thanks in advance
I am working with QuickBooksSDK. Manufacturer has provided a dll (qbfc2_1.ddl). This DLL has only 2 classes and a lot of interfaces. I can create object of these class, but I can't (or I don't know) use interfaces. Every time I get message: "OLE error code: 0x80020006:Unknown name".
My question is how to use the interfaces of the classe from DLL not programmed in FoxPro?
Here is part of source:
store "Vendor_FoxPro" to cAppID
store "Vendor_FoxPro" to cAppName
* Registered Class: QBSessionManager
objQB = createobject("QBFC2.QBSessionManager"
objQB.OpenConnection (cAppID, cAppName)
objQB.BeginSession ("", 2) && 2-omDontCare
* Create the message set request object.
* This function is in the class QBSessionManager
requestMsgSet = objQB.CreateMsgSetRequest(1,1)
*AppendVendorQueryRq is interface
*Here I get an error
VendorQuery = objQB.AppendVendorQueryRq
ListQueryXML = requestMsgSet.ToXMLString
ListResponse = objQB.DoRequests(requestMsgSet)
If isnull(ListResponse.ResponseList) then && Is Nothing
Exit
EndIf
Thanks in advance