comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: accessing subprogram & inheritance problem
Date: Thu, 08 Feb 2001 04:36:48 GMT
Date: 2001-02-08T04:36:48+00:00	[thread overview]
Message-ID: <Anpg6.66322$R5.3481885@news1.frmt1.sfba.home.com> (raw)
In-Reply-To: 3A81FC28.90BD0ABB@lmco.com

>How do you implement COM type interfaces in Ada?
 Roughly:
    type QueryInterface_Spec is access function (This : access VTable_Type;
      riid:Pointer_To_Constant_GUID;
      ppvObj:Pointer_To_Interface) return HResult;
    pragma Convention(StdCall,QueryInterface_Spec);
    type AddRef_Spec is access function (This : access VTable_Type)
    return UInt;
    pragma Convention(StdCall,AddRef_Spec);
    ...
    type VTable_Type is record
      QueryInterface : QueryInterface_Spec;
      AddRef : AddRef_Spec;
      ...
 Look at David Botton's GNATCOM at www.adapower.com for automatic tools,
explanation, etc.



  reply	other threads:[~2001-02-08  4:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-05 23:12 accessing subprogram & inheritance problem VC
2001-02-06  4:43 ` tmoran
2001-02-06  7:59   ` Sven Nilsson
2001-02-08  1:53 ` Robert Brantley
2001-02-08  4:36   ` tmoran [this message]
2001-02-08 18:48     ` Robert Brantley
replies disabled

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