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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4139aa0db7d91e75,start X-Google-Attributes: gid103376,public From: steved@pacifier.com (Steve Doiel) Subject: Re: Ada callable from Visual Basic? Date: 1997/10/19 Message-ID: <344a55ad.0@news.pacifier.com>#1/1 X-Deja-AN: 281815110 References: <62calr$hsk$1@tsunami.traveller.com> Newsgroups: comp.lang.ada Date: 1997-10-19T00:00:00+00:00 List-Id: [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. Using ObjectAda you can create a DLL that is callable from Delphi. In ObjectAda you first create a package spec that contains everything to be exported by the DLL (for each DLL), and then in Delphi you create stubs that reference the DLL as external. I believe you can do the same with GNAT. As a matter of fact Pascal Obry has an example on his web page of how to call a GNAT DLL. I haven't tried this with GNAT yet, but it took about 15 minutes to figure out how to make the Delphi/ObjectAda combination work the first time. If you like, I'd be happy to email you my trivial example. Steve Doiel steved@pacifier.com