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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,3f86b88a131d728f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!bigfeed2.bellsouth.net!news.bellsouth.net!border2.nntp.dca.giganews.com!nntp.giganews.com!newsgate.cuhk.edu.hk!news.netfront.net!not-for-mail From: Hang Xie Newsgroups: comp.lang.ada Subject: Re: Using Win32Com with Ada Date: Fri, 29 May 2009 08:40:06 -0700 Organization: Netfront http://www.netfront.net Message-ID: References: <99a42cc0-eb5f-446e-a78f-ec49fe6f2208@q14g2000vbn.googlegroups.com> <4a11bada$1_1@news.bluewin.ch> NNTP-Posting-Host: 24.5.219.240 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: adenine.netfront.net 1243611613 65340 24.5.219.240 (29 May 2009 15:40:13 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Fri, 29 May 2009 15:40:13 +0000 (UTC) User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:6104 Date: 2009-05-29T08:40:06-07:00 List-Id: It seems -fdump-ada-spec does not work quite well with header files come with Windows SDK - does anyone have any good experience to share? Specifically, I was trying to roll out DirectShow specification but encountered way too many errors. I haven't tried yet but I assume it works fine on *nix or header files targeting gcc, anyway Windows is just 2nd (maybe 3rd) tier platform for most open source projects. -Hang Per Sandberg wrote: > This is currently part of GNATPro > just "g++ -c blaa.h -fdump-ada-spec" or "gcc -c blaa.h -fdump-ada-spec" > and out comes blaa_h.ads. > Suppose that wil be part of GNAT GPL 2000 > /Per > > > Hang Xie wrote: >> I'm doing some migration from VC to GNAT, and writing my own binding >> of DirectShow (pure COM based) is not that hard. >> >> Someone should compose a tool to convert C header files to GNAT's ads, >> I'm just lazy doing so as I've done more of my jobs manually ... >> >> -Hang >> >> "Gautier" wrote in message >> news:4a11bada$1_1@news.bluewin.ch... >>> Petter: >>> >>>> Some time ago I tried to get GNATCOM working, but I failed. >>> >>> It could be the same problem as GWindows: it works, but the installer >>> doesn't on recent GNATs, so you need a pre-built source and tool set >>> (*). A workaround is to build it with GNAT 3.15p, then use the stuff >>> with any newer GNAT (for GWindows, this trick works through 2008 GPL >>> at least). >>> ___ >>> (*) or be patient: the repackaging of GNATCOM and GWindows are in >>> progress; perhaps the svn version is usable. >>> _________________________________________________________ >>> Gautier's Ada programming -- http://sf.net/users/gdemont/ >>> NB: For a direct answer, e-mail address on the Web site! >>