• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 362
  • Last Modified:

call VB ActiveX DLL in delphi

I have a application written in VB and need to recode to Deplhi. It is calling a third party ActiveX DLL written in VB as well. How should i call the dll in delphi?
For example (VB)
  set obj = createobject("testapi.test_cls","servername");

If one of the function return as FILE, how should i declare/recode in Delphi?

For example (VB)
  Dim f As FILE
  Dim s As String
  f = obj.GetRecordInfo(10000);
  s = f.username
 
 
0
shanng
Asked:
shanng
1 Solution
 
BorlandManCommented:

If you have a typelib for the Ole/Com Server, I would import that into Delphi and it should generate a vcl wrapper around it. See ActiveX in the help.

hope that gets you started,
J
0
 
CleanupPingCommented:
shanng:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now