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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b7e4340100880cc9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-15 06:57:49 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!shale.ftech.net!news.ftech.net!isdnet!enst!enst.fr!not-for-mail From: "David Botton" Newsgroups: comp.lang.ada Subject: Re: gnat ada DLL and VB Date: Wed, 15 Aug 2001 09:42:31 -0400 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <9Src7.1578$bl.79685@news.siol.net> <7i_d7.276991$qc.33250428@news1.rdc1.va.home.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 997883868 39824 137.194.161.2 (15 Aug 2001 13:57:48 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 15 Aug 2001 13:57:48 +0000 (UTC) To: Return-Path: X-pair-Authenticated: 65.185.64.49 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:11950 Date: 2001-08-15T09:42:31-04:00 Thanks to CreateCOM there is no need to understand COM. Just fill in the blanks and your Ada code will be instantly usable to VB, Delphi, MSVC++ and on the CLR easier then with a DLL. For example in VB after creating your Ada COM object. Register the DLL by typing: regsvr32 /r NameOfYourCOMObject then in VB choose the references Object menu option and pick your object. Use the Ada code as you would any other VB object. If this was a DLL, you would have to writing a binding to each method in VB as well. In MSVC++, do: #import "Path\NameOfYourCOMObject.dll" the just start working MyInterfacePtr ABC; ABC.CreateInstance (__uuidof (MyObject)); etc. On top of that, say you wanted to do a little remote computing :-) Don't try this with your DLL. Go to a remote machine, run the CreateCOM generate program NameOfYourCOMObject-Remote.exe on a remote machine and then run the _exact same_ client code on that machine an be accessing your object accross the network. David Botton ----- Original Message ----- From: "R. Srinivasan" > Many of us -- well speaking for myself, COM/DCOM/DCOM+ etc. etc. are not the > easiest to understand. These are comprehensive technologies that addresses a > broad range of issues. Even with supposedly "friendly" environments (to each > other I mean) like VC++ and VB, both the development, troubleshooting is > quite challenging to put it mildly -- particularly when it comes to > interoperation between VB/VC++. > > Afterall one of the central theme of VS.NET namely the "much touted" CLR is > a testament to the issues involved. > > > "David Botton" wrote in message > news:mailman.997714164.3020.comp.lang.ada@ada.eu.org... > > Why would any one write a DLL on windows to work with VB or for that > matter > > with any language? Particularly when there are excellent COM/DCOM tools > that > > make creating COM objects with Ada 95 easier then perhaps even VB itself > :-) > > > > Step 1 - Write IDL and compile with MIDL to a TypeLibrary (or use a GUI > type > > library creation tool) > > Step 2 - Run CreateCOM on TLB file > > Step 3 - Fill in the blanks :-) > > > > DONE > > > > DLL's these days are only being developed for use with inferior languages > > like C/C++ where the average programmer is too lazy to write/use COM/DCOM > > objects since their tools and/or skills are not as well developed on the > > Windows platform. > > > > http://www.adapower.com/gnatcom > > > > David Botton > > > > > > > > ----- Original Message ----- > > From: "isaac buchwald" > > > > > > > Does anybody tryed to build a simple dll in gnat ada (v 3.13p) > > that > > > was > > > able to reference it in a visual basic (v 6.0) project - and it > was > > > working? > > > > > > If there is such a mighty ada programmer , please share your > demo > > > code > > > with the community. > > > > > > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada >