comp.lang.ada
 help / color / mirror / Atom feed
From: "Paul Whittington" <paul@sage.inel.gov>
Subject: Re: Bug reports for Win32Ada Binding
Date: 1996/08/30
Date: 1996-08-30T00:00:00+00:00	[thread overview]
Message-ID: <01bb96cb$340fd180$24af1486@pc-phw.inel.gov> (raw)
In-Reply-To: dewar.841212450@schonberg


Robert Dewar <dewar@cs.nyu.edu> wrote in article
<dewar.841212450@schonberg>...
> ... Why unchecked???

Given 
  
   package Win32.ObjBase is
   ...
   type HRESULT is new Win32.LONG;
   ...
   function CoCreateInstance(
                rclsid      : REFCLSID;
                pUnkOuter   : LPUNKNOWN;
                dwClsContext: DWORD;
                riid        : REFIID;
                ppv         : access Win32.PVOID)
               return HRESULT;    
   ...
   end Win32.ObjBase;

and 

  package Win32.WinError is
  ...
  type HRESULT is new LONG;
  ...
  function FAILED(Status: HRESULT) return Standard.Boolean;
  ...
  end Win32.WinError;

I used 

  function WinError_HRESULT_To_ObjBase_HRESULT is new
    Ada.Unchecked_Conversion (Win32.WinError.HRESULT,Win32.ObjBase.HRESULT);




  reply	other threads:[~1996-08-30  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-27  0:00 Bug reports for Win32Ada Binding Paul Whittington
1996-08-28  0:00 ` Robert Dewar
1996-08-30  0:00   ` Paul Whittington [this message]
1996-08-30  0:00     ` Robert Dewar
1996-08-31  0:00     ` Robert A Duff
1996-08-28  0:00 ` John C. Gordon
replies disabled

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