comp.lang.ada
 help / color / mirror / Atom feed
* Win32
@ 2004-02-07  7:34 Brian Catlin
       [not found] ` <m2u11y3aic.fsf@jvdsys.demon.nl>
  2004-02-13  0:37 ` Win32 Gautier Write-only
  0 siblings, 2 replies; 13+ messages in thread
From: Brian Catlin @ 2004-02-07  7:34 UTC (permalink / raw)


I need to write an image processing app that reads frames from an Intel CS330
USB camera on WinXP.  I was planning on using either the Windows Image
Acquisition (WIA) APIs or the TWAIN APIs.

Can someone recommend a Win32 binding (thick or thin)?  I looked on AdaPower,
but a lot of the information on Win32 is a few years old, and may not be up to
date

 -Brian





^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Win32
       [not found] ` <m2u11y3aic.fsf@jvdsys.demon.nl>
@ 2004-02-11  0:21   ` Jeff C,
  2004-02-11 11:52   ` Win32 Tim Rowe
  1 sibling, 0 replies; 13+ messages in thread
From: Jeff C, @ 2004-02-11  0:21 UTC (permalink / raw)



"Jerry van Dijk" <somename@nospam.demon.nl> wrote in message
news:m2u11y3aic.fsf@jvdsys.demon.nl...
>
> "Brian Catlin" <BrianC@sannas.org.bad> writes:
>
> > I need to write an image processing app that reads frames from an Intel
CS330
> > USB camera on WinXP.  I was planning on using either the Windows Image
> > Acquisition (WIA) APIs or the TWAIN APIs.
>
> Hmmm, I am not familiar with this camera, but TWAIN is by now obsolete.
> >
> > Can someone recommend a Win32 binding (thick or thin)?  I looked on
AdaPower,
> > but a lot of the information on Win32 is a few years old, and may not be
up to
> > date
>
> Unfortunately the Ada community is not interested in the Win32 API. Your
best
> bet is either to write the code in another language (for example, c++) and
> compile it to an Ada usable DLL, or construct a binding yourself to that
part
> of the Win32 API you need.
>
> -- 


Try getting something that has a COM interface and auto generate a binding
with bindcom (from www.adapower.com)

For example, running the dll inside the library here

http://vbnet.mvps.org/index.html?code/imageapi/mswaidll.htm

produced a pretty readable binding. (assuming you are used to win32 code)





^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Win32
       [not found] ` <m2u11y3aic.fsf@jvdsys.demon.nl>
  2004-02-11  0:21   ` Win32 Jeff C,
@ 2004-02-11 11:52   ` Tim Rowe
  2004-02-11 15:40     ` Win32 Frank J. Lhota
                       ` (2 more replies)
  1 sibling, 3 replies; 13+ messages in thread
From: Tim Rowe @ 2004-02-11 11:52 UTC (permalink / raw)


On 10 Feb 2004 22:11:39 +0100, Jerry van Dijk
<somename@nospam.demon.nl> wrote:

>Unfortunately the Ada community is not interested in the Win32 API. 

A little sweeping! I have the gnatwin package installed
(ftp://ftp.cs.nyu.edu/pub/gnat/3.15p/winnt/), which includes WIndows
API bindings, though I've not used them yet; as you might note from my
other postings I'm looking at the .net bindings at the moment. I'd
guess that the biggest issue with gnatwin is likely to be the gnu
license which may not be suitable for your purposes.



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Win32
  2004-02-11 11:52   ` Win32 Tim Rowe
@ 2004-02-11 15:40     ` Frank J. Lhota
  2004-02-11 16:11       ` Win32 Preben Randhol
  2004-02-12  1:50     ` Win32 tmoran
       [not found]     ` <m2ekt1k411.fsf@jvdsys.demon.nl>
  2 siblings, 1 reply; 13+ messages in thread
From: Frank J. Lhota @ 2004-02-11 15:40 UTC (permalink / raw)


"Tim Rowe" <tim@remove_if_not_spam.digitig.co.uk> wrote in message
news:1j5k20p2ng25ukvupsebumcot60ugmsl90@4ax.com...
> On 10 Feb 2004 22:11:39 +0100, Jerry van Dijk
> <somename@nospam.demon.nl> wrote:
>
> A little sweeping! I have the gnatwin package installed
> (ftp://ftp.cs.nyu.edu/pub/gnat/3.15p/winnt/), which includes WIndows
> API bindings, though I've not used them yet; as you might note from my
> other postings I'm looking at the .net bindings at the moment. I'd
> guess that the biggest issue with gnatwin is likely to be the gnu
> license which may not be suitable for your purposes.

GNAT uses the LGPL, easily the most flexible licence around.

I have done quite a lot of programming with the Win32Ada bindings, which is
available both for GNAT and for ObjectAda. It is a very thin binding to the
Win32 API services. It looks sort of ugly, but to those who are used to
Win32 programming in C, it looks very familiar.





^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Win32
  2004-02-11 15:40     ` Win32 Frank J. Lhota
@ 2004-02-11 16:11       ` Preben Randhol
  2004-02-12 12:23         ` Win32 Jeff C,
  0 siblings, 1 reply; 13+ messages in thread
From: Preben Randhol @ 2004-02-11 16:11 UTC (permalink / raw)


On 2004-02-11, Frank J. Lhota <NOSPAM.lhota.adarose@verizon.net> wrote:
>
> GNAT uses the LGPL, easily the most flexible licence around.

Oh? Have they changed? I thought they use the GMGPL?


-- 
"Saving keystrokes is the job of the text editor, not the programming
 language."



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Win32
  2004-02-11 11:52   ` Win32 Tim Rowe
  2004-02-11 15:40     ` Win32 Frank J. Lhota
@ 2004-02-12  1:50     ` tmoran
       [not found]     ` <m2ekt1k411.fsf@jvdsys.demon.nl>
  2 siblings, 0 replies; 13+ messages in thread
From: tmoran @ 2004-02-12  1:50 UTC (permalink / raw)


> >Unfortunately the Ada community is not interested in the Win32 API.
>
> A little sweeping!
  Absolutely.
I have an Ada Claw binding to Video For Windows, which is pretty old, but
has the virtue of running on older things than Windows XP.  You're welcome
to a copy if you want it.



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Win32
  2004-02-11 16:11       ` Win32 Preben Randhol
@ 2004-02-12 12:23         ` Jeff C,
  2004-02-13  1:14           ` Win32 Stephen Leake
  0 siblings, 1 reply; 13+ messages in thread
From: Jeff C, @ 2004-02-12 12:23 UTC (permalink / raw)


Things have not changed..Though I have seen some people post libraries that
do GMLGPL ! Which is a little odd and I dont think works out to what people
think
it works out to.


"Preben Randhol" <randhol+valid_for_reply_from_news@pvv.org> wrote in
message
news:slrnc2kl1v.92a.randhol+valid_for_reply_from_news@k-083152.nt.ntnu.no...
> On 2004-02-11, Frank J. Lhota <NOSPAM.lhota.adarose@verizon.net> wrote:
> >
> > GNAT uses the LGPL, easily the most flexible licence around.
>
> Oh? Have they changed? I thought they use the GMGPL?
>
>
> -- 
> "Saving keystrokes is the job of the text editor, not the programming
>  language."





^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Win32
  2004-02-07  7:34 Win32 Brian Catlin
       [not found] ` <m2u11y3aic.fsf@jvdsys.demon.nl>
@ 2004-02-13  0:37 ` Gautier Write-only
  1 sibling, 0 replies; 13+ messages in thread
From: Gautier Write-only @ 2004-02-13  0:37 UTC (permalink / raw)


Brian Catlin wrote:

> I need to write an image processing app that reads frames from an Intel CS330
> USB camera on WinXP.  I was planning on using either the Windows Image
> Acquisition (WIA) APIs or the TWAIN APIs.
> 
> Can someone recommend a Win32 binding (thick or thin)?  I looked on AdaPower,
> but a lot of the information on Win32 is a few years old, and may not be up to
> date

--> http://www.adapower.com/gwindows/

This one is very good : self-explaining, coherent, nicely and scalabily
object-oriented. Some parts of Win32 are not (yet) there, but you can complete
it easily. In the same area GNATCOM can produce automatically bindings,
maybe it will do the trick for your API's.
HTH
________________________________________________________
Gautier  --  http://www.mysunrise.ch/users/gdm/gsoft.htm

NB: For a direct answer, e-mail address on the Web site!



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Win32
  2004-02-12 12:23         ` Win32 Jeff C,
@ 2004-02-13  1:14           ` Stephen Leake
  2004-02-13  3:47             ` Win32 Jeff C,
  0 siblings, 1 reply; 13+ messages in thread
From: Stephen Leake @ 2004-02-13  1:14 UTC (permalink / raw)
  To: comp.lang.ada

"Jeff C," <jcreem@yahoo.com> writes:

> Things have not changed..Though I have seen some people post
> libraries that do GMLGPL ! Which is a little odd and I dont think
> works out to what people think it works out to.

Interesting. Are you marketing your mind reading skills?

I use the GMGPL for my releases, and I know _exactly_ what it means.

-- 
-- Stephe




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Win32
  2004-02-13  1:14           ` Win32 Stephen Leake
@ 2004-02-13  3:47             ` Jeff C,
  2004-02-14  1:56               ` Win32 Stephen Leake
  0 siblings, 1 reply; 13+ messages in thread
From: Jeff C, @ 2004-02-13  3:47 UTC (permalink / raw)



"Stephen Leake" <stephen_leake@acm.org> wrote in message
news:mailman.19.1076634854.295.comp.lang.ada@ada-france.org...
> "Jeff C," <jcreem@yahoo.com> writes:
>
> > Things have not changed..Though I have seen some people post
> > libraries that do GMLGPL ! Which is a little odd and I dont think
> > works out to what people think it works out to.
>
> Interesting. Are you marketing your mind reading skills?
>
> I use the GMGPL for my releases, and I know _exactly_ what it means.
>

I know..I am sure you do.And GMGPL is pretty well understood.
I am saying that I recently saw a library with a GM L GPL
(The LGPL with the GNAT exception)...







^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Win32
       [not found]     ` <m2ekt1k411.fsf@jvdsys.demon.nl>
@ 2004-02-13 13:59       ` Frank J. Lhota
  2004-02-14  1:57         ` Win32 Stephen Leake
  0 siblings, 1 reply; 13+ messages in thread
From: Frank J. Lhota @ 2004-02-13 13:59 UTC (permalink / raw)


"Jerry van Dijk" <somename@nospam.demon.nl> wrote in message
news:m2ekt1k411.fsf@jvdsys.demon.nl...
> I have been trying to get the community to update the Win32 API binding
for
> a few years now.

Amen! This forum has had several threads where we have discussed the
omissions , errors and lack of updates to the Win32Ada binding. The problem
AFIAK is determining who is responsible for Win32Ada. Frankly, I would love
to see this become a SourceForge project.





^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Win32
  2004-02-13  3:47             ` Win32 Jeff C,
@ 2004-02-14  1:56               ` Stephen Leake
  0 siblings, 0 replies; 13+ messages in thread
From: Stephen Leake @ 2004-02-14  1:56 UTC (permalink / raw)
  To: comp.lang.ada

"Jeff C," <jcreem@yahoo.com> writes:

> "Stephen Leake" <stephen_leake@acm.org> wrote in message
> news:mailman.19.1076634854.295.comp.lang.ada@ada-france.org...
> > "Jeff C," <jcreem@yahoo.com> writes:
> >
> > > Things have not changed..Though I have seen some people post
> > > libraries that do GMLGPL ! Which is a little odd and I dont think
> > > works out to what people think it works out to.
> >
> > Interesting. Are you marketing your mind reading skills?
> >
> > I use the GMGPL for my releases, and I know _exactly_ what it means.
> >
> 
> I know..I am sure you do.And GMGPL is pretty well understood.
> I am saying that I recently saw a library with a GM L GPL
> (The LGPL with the GNAT exception)...

Ah, sorry, missed the extra L. That would indicate they aren't
thinking (or reading) straight!

-- 
-- Stephe




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Win32
  2004-02-13 13:59       ` Win32 Frank J. Lhota
@ 2004-02-14  1:57         ` Stephen Leake
  0 siblings, 0 replies; 13+ messages in thread
From: Stephen Leake @ 2004-02-14  1:57 UTC (permalink / raw)
  To: comp.lang.ada

"Frank J. Lhota" <NOSPAM.lhota.adarose@verizon.net> writes:

> "Jerry van Dijk" <somename@nospam.demon.nl> wrote in message
> news:m2ekt1k411.fsf@jvdsys.demon.nl...
> > I have been trying to get the community to update the Win32 API binding
> for
> > a few years now.
> 
> Amen! This forum has had several threads where we have discussed the
> omissions , errors and lack of updates to the Win32Ada binding. The problem
> AFIAK is determining who is responsible for Win32Ada. Frankly, I would love
> to see this become a SourceForge project.

So do it! 

Win32Ada carries a Microsoft license, so you can't start with that.
But you can start one from scratch, or from GWindows, or from Windex.
Nothing is stopping you.

-- 
-- Stephe




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-02-14  1:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-07  7:34 Win32 Brian Catlin
     [not found] ` <m2u11y3aic.fsf@jvdsys.demon.nl>
2004-02-11  0:21   ` Win32 Jeff C,
2004-02-11 11:52   ` Win32 Tim Rowe
2004-02-11 15:40     ` Win32 Frank J. Lhota
2004-02-11 16:11       ` Win32 Preben Randhol
2004-02-12 12:23         ` Win32 Jeff C,
2004-02-13  1:14           ` Win32 Stephen Leake
2004-02-13  3:47             ` Win32 Jeff C,
2004-02-14  1:56               ` Win32 Stephen Leake
2004-02-12  1:50     ` Win32 tmoran
     [not found]     ` <m2ekt1k411.fsf@jvdsys.demon.nl>
2004-02-13 13:59       ` Win32 Frank J. Lhota
2004-02-14  1:57         ` Win32 Stephen Leake
2004-02-13  0:37 ` Win32 Gautier Write-only

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