comp.lang.ada
 help / color / mirror / Atom feed
From: Juergen.Pfeifer@t-online.de (Juergen Pfeifer)
Subject: Re: COM & ADA
Date: 1998/02/11
Date: 1998-02-11T00:00:00+00:00	[thread overview]
Message-ID: <6bt9n2$n38$1@news02.btx.dtag.de> (raw)
In-Reply-To: 887219614.265682953@dejanews.com


As COM isn't language dependant, the question isn't a proper one.

There is some conveniance if you use C++, because part of the
COM model is a virtual function table representing an interface and
that is defined in the same way the C++ compiler lays out its vtable.
On Win32 this is of course the layout of microsofts C++ compiler,
on other platforms ( (D)COM is available on some UNIXes and on
OS/390 Mainframe OS) the layout is according to the OS vendors
predominant C++ compiler. On Linux for example the COM vtables
are layed out according to the GNU g++ compiler.
The nice thing there is, that the GNAT Ada95 compiler also uses
this vtable layout, so you don't have to adjust this mechanism. At
least with GNAT the way the compiler interfaces to C++ vtables
can be changed by the programmer, so you can adapt this to the
C++ vtable layout that is used by COM on your platform. Then you
can use the Ada95 tagged record mechanism to construct your
COM objects.
The real bad news is of courses, that all the header files with all
the predefined GUIDS, Interfaces etc, etc. only exist for C/C++,
so you have to do a lot to get a nice set of Ada95 packages to be
able to use COM easily (if that's possible at all, but thats a different
story;-))

Cheers
Juergen

ahmed@info.polymtl.ca schrieb in Nachricht
<887219614.265682953@dejanews.com>...
>Hi, I want to know if COM and ADA are compatible
>do you know any WEB site about ADA and Component Object Model
>
>Thank you
>
>-------------------==== Posted via Deja News ====-----------------------
>      http://www.dejanews.com/     Search, Read, Post to Usenet






  reply	other threads:[~1998-02-11  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-11  0:00 COM & ADA ahmed
1998-02-11  0:00 ` Juergen Pfeifer [this message]
1998-02-12  0:00   ` Michael F Brenner
1998-02-13  0:00     ` COM & Ada Nick Roberts
1998-02-15  0:00 ` COM & ADA Francois Krull
  -- strict thread matches above, loose matches on Subject: below --
1998-02-12  0:00 Simon Johnston
replies disabled

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