call VB ActiveX DLL in delphi

Posted on 2003-02-21
Medium Priority
Last Modified: 2010-08-05
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
Question by:shanng
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

BorlandMan earned 80 total points
ID: 8014023

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,

Expert Comment

ID: 9317131
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 
Post your closing recommendations!  No comment means you don't care.

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question