* Using Win32Com with Ada
@ 2009-05-18 10:59 cedric
2009-05-18 15:32 ` Petter
0 siblings, 1 reply; 6+ messages in thread
From: cedric @ 2009-05-18 10:59 UTC (permalink / raw)
Hi All,
I would like to use the Win32Com interface in Ada. Can anybody give me
a hint how to do it and where to find information about it?
Cedric
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Using Win32Com with Ada
2009-05-18 10:59 Using Win32Com with Ada cedric
@ 2009-05-18 15:32 ` Petter
2009-05-18 19:45 ` Gautier
0 siblings, 1 reply; 6+ messages in thread
From: Petter @ 2009-05-18 15:32 UTC (permalink / raw)
I just got the advise to wait for GNAT GPL 2009, maybe you should
aswell.
Some time ago I tried to get GNATCOM working, but I failed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Using Win32Com with Ada
2009-05-18 15:32 ` Petter
@ 2009-05-18 19:45 ` Gautier
2009-05-19 3:17 ` Hang Xie
0 siblings, 1 reply; 6+ messages in thread
From: Gautier @ 2009-05-18 19:45 UTC (permalink / raw)
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!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Using Win32Com with Ada
2009-05-18 19:45 ` Gautier
@ 2009-05-19 3:17 ` Hang Xie
2009-05-19 3:53 ` Per Sandberg
0 siblings, 1 reply; 6+ messages in thread
From: Hang Xie @ 2009-05-19 3:17 UTC (permalink / raw)
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" <gautier@fakeaddress.nil> 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!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Using Win32Com with Ada
2009-05-19 3:17 ` Hang Xie
@ 2009-05-19 3:53 ` Per Sandberg
2009-05-29 15:40 ` Hang Xie
0 siblings, 1 reply; 6+ messages in thread
From: Per Sandberg @ 2009-05-19 3:53 UTC (permalink / raw)
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" <gautier@fakeaddress.nil> 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!
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Using Win32Com with Ada
2009-05-19 3:53 ` Per Sandberg
@ 2009-05-29 15:40 ` Hang Xie
0 siblings, 0 replies; 6+ messages in thread
From: Hang Xie @ 2009-05-29 15:40 UTC (permalink / raw)
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" <gautier@fakeaddress.nil> 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!
>>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-05-29 15:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-18 10:59 Using Win32Com with Ada cedric
2009-05-18 15:32 ` Petter
2009-05-18 19:45 ` Gautier
2009-05-19 3:17 ` Hang Xie
2009-05-19 3:53 ` Per Sandberg
2009-05-29 15:40 ` Hang Xie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox