comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.Leake@gsfc.nasa.gov>
Subject: Re: Ada callable from Visual Basic?
Date: 1997/10/20
Date: 1997-10-20T00:00:00+00:00	[thread overview]
Message-ID: <344BAFE3.48BD@gsfc.nasa.gov> (raw)
In-Reply-To: 344a55ad.0@news.pacifier.com


Steve Doiel wrote:
> 
> [snip]
> >
> >Oops, sorry.  Let me step down from my stump, and meekly ask my
> >original question again:  How do I call Ada code from a Visual Basic
> >GUI?
> >
> I'm not sure exactly how to do it with Visual Basic, but it's a trivial
> exercise to do it with Delphi and ObjectAda 7.1.  Presumably it's just as
> easy to do with Visual Basic.

I tried writing a DLL with ObjectAda and then calling it from Visual
Basic. VB complained it couldn't find the function. I believe the reason
is that the DLL that OA made did not have the function names in its
headers. In Windows 95, you can use Quick View (right mouse in Explorer)
to look at the header of a DLL and see what it exports; the function VB
was trying to find did not appear. In other DLLs that VB can use, the
functions do appear. Apparently, for the DLLs from ObjectAda, the
function names are only in the import lib, which is what Delphi, C, and
C++ look at. 

Apparently there is more than one way to build a DLL! Does anyone have a
definitive reference? The MS help files are not enough.

I have not looked at DLLs from GNAT.

(Thank you Microsoft, for such a well defined and consistently followed
standard) (I can see it now; ISO standard DLLs from Ada95!).

-- 
- Stephe




  reply	other threads:[~1997-10-20  0:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-19  0:00 Ada callable from Visual Basic? Dave Smith
1997-10-19  0:00 ` Steve Doiel
1997-10-20  0:00   ` Stephen Leake [this message]
1997-10-21  0:00   ` Dave Smith
1997-10-20  0:00 ` Larry Kilgallen
1997-10-20  0:00   ` Al Christians
1997-10-20  0:00     ` Tom Moran
1997-10-20  0:00     ` James S. Rogers
1997-10-25  0:00   ` Dave Wood
1997-10-21  0:00 ` Jerry van Dijk
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox