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,8ae7fca9d9e30239 X-Google-Attributes: gid103376,public From: Ray Blaak Subject: Re: AdaCOM.Interface makes COM so easy... Date: 1999/05/12 Message-ID: #1/1 X-Deja-AN: 477092255 Sender: blaak@LANGLEY References: <373932F8.7699944E@Botton.com> X-Complaints-To: news@bctel.net X-Trace: news.bctel.net 926531797 209.52.142.33 (Wed, 12 May 1999 10:56:37 PDT) Organization: The Transcend NNTP-Posting-Date: Wed, 12 May 1999 10:56:37 PDT Newsgroups: comp.lang.ada Date: 1999-05-12T00:00:00+00:00 List-Id: David Botton writes: > Now you can try out what a Thick COM binding will be like. This new > binding to the beep example should give you an idea of how easy COM will > be. Included in the zip file is the AdaCom.Interface package that makes > it all possible. Pretty cool! One minor comment. The GUIDs look like: CLSID_BeepClass : aliased Stdole.GUID := ( 266399265 , 35490 , 4562 , (unsigned_char'Val( 129),unsigned_char'Val( 170),unsigned_char'Val( 68), unsigned_char'Val( 69),unsigned_char'Val( 83),unsigned_char'Val( 84), unsigned_char'Val( 0),unsigned_char'Val( 1))); Could not something other than unsigned_char be used (i.e. some sort of 8-bit integer), so that you could actually have cleaner declarations like: CLSID_BeepClass : aliased Stdole.GUID := (266399265, 35490, 4562, (129, 170, 68, 69, 83, 84, 0, 1)); If unsigned_char is absolutely required, supply a conversion function so that one do: CLSID_BeepClass : aliased Stdole.GUID := GUID_Of(266399265, 35490, 4562, 129, 170, 68, 69, 83, 84, 0, 1); -- Cheers, The Rhythm is around me, The Rhythm has control. Ray Blaak The Rhythm is inside me, blaak@infomatch.com The Rhythm has my soul.