TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
David Botton <[log in to unmask]>
Reply To:
Thu, 16 Sep 1999 10:02:16 -0700
text/plain (46 lines)
Your are very correct in the Ada integrates well with
VB and that GUIs, etc. can be done in VB and that use
Ada Code. in your code you are just shelling out to
Ada from VB. I have also, integrated VB and Ada using
these methods:

1. Using COM
2. Using a DLL
3. Using a DLL and a Type Library that has the DLL

The COM option is a increadibly easy now using
CreateCOM (see

1) You create a simple IDL file defining the COM
2) Compile it to a type lib using MIDL
3) Run CreateCOM on it
4) Fill in the bodies of the interface methods for the
COM object with your Ada code.
5) Compile the Ada code
6) Register the Dll or Exe version of the COM object

You can then easily access the object from VB or any
other language! In VB just select the Ada COM object
from the menu and start using it.

You can do more advance COM stuff like events, etc.
also. I am continuing to work on the tools and COM
frameworks. Soon it will be possible to create a less
powerful COM object using a couple of lines of Ada
code with out going through the IDL, TypeLib, and
tools. An Ada tool to create TypeLibs is also planned.

David Botton

--- "Richard L. Conn" <[log in to unmask]> wrote:

> I just finished including a series on a Visual Basic
> program running
> an Ada program.

Do You Yahoo!?
Bid and sell for free at