Hi All,
As a novice programmer I have only a little knowledge of using APIs so I hope someone can help.
I've been given, what the developer called, a "very basic" API which is in the form of a COM DLL file without documentation.
I need to use this API to get customer names from a third-party program and copy them to the Windows clipboard. So very simple stuff.
However, having added the DLL to my basic project I can't get all the functions to work.
The first part works fine (program login) but everything else returns either NULL or an error. In the example below, I get an interface error.
Dim qCustomer As New QuestAPI.ICustomer <= Error: 'New cannot be used on an interface'
sCustomerName = qCustomer.FullName.ToString
Dim qCustomer as QuestAPI.ICustomer <= Does nothing
Implements ICustomer
sCustomerName = Me.FullName.ToString <= Does nothing
Can anyone offer any help? Perhaps someone recommend an API guide.
Cheers,
M.
As a novice programmer I have only a little knowledge of using APIs so I hope someone can help.
I've been given, what the developer called, a "very basic" API which is in the form of a COM DLL file without documentation.
I need to use this API to get customer names from a third-party program and copy them to the Windows clipboard. So very simple stuff.
However, having added the DLL to my basic project I can't get all the functions to work.
The first part works fine (program login) but everything else returns either NULL or an error. In the example below, I get an interface error.
Dim qLogin As New QuestAPI.Session <= Works fine
qLogin.Login(sUsername, sPassword)
but... qLogin.Login(sUsername, sPassword)
Dim qCustomer As New QuestAPI.ICustomer <= Error: 'New cannot be used on an interface'
sCustomerName = qCustomer.FullName.ToString
Dim qCustomer as QuestAPI.ICustomer <= Does nothing
Implements ICustomer
sCustomerName = Me.FullName.ToString <= Does nothing
Can anyone offer any help? Perhaps someone recommend an API guide.
Cheers,
M.
Last edited: