From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4139aa0db7d91e75 X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: Ada callable from Visual Basic? Date: 1997/10/20 Message-ID: <344BAFE3.48BD@gsfc.nasa.gov>#1/1 X-Deja-AN: 282034231 References: <62calr$hsk$1@tsunami.traveller.com> <344a55ad.0@news.pacifier.com> Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Reply-To: Stephen.Leake@gsfc.nasa.gov Newsgroups: comp.lang.ada Date: 1997-10-20T00:00:00+00:00 List-Id: 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