delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/04/12:32:17

X-Spam-Check-By: sourceware.org
Message-ID: <44830B06.D1CB4D0B@dessent.net>
Date: Sun, 04 Jun 2006 09:32:06 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: g++ API for video acquisition
References: <200606041336 DOT 59123 DOT p DOT gambron AT skynet DOT be>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Philippe Gambron wrote:

> I know that Windows offers an API (Video for Windows) that allows to do
> roughly the same thing.

VFW is old and deprecated, it's cruft from the 16 bit Windows 3.x days. 
DirectShow is the modern replacement.

> But is it possible to use this API (or another that allows to do the same
> thing) with g++ under cygwin? In other words, do we have to buy Visual Net
> Studio or is it possible to do such a thing under windows using only free
> components?

You can use the full Win32 API with gcc; this is what the w32api package
provides.  But do note that for the purposes of a Cygwin program (as
opposed to a Mingw one) you should do things in a Posix way whenever
possible -- this means using open() instead of CreateFile(),
fork()/exec() or spawn() instead of CreateProcess(), pthreads instead of
CreateThread(), and so on.If you want to write a pure windows app and do
everything in the Win32 API way then you should use Mingw.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019