delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/09/11:43:16

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Lewis Hyatt <lhyatt AT princeton DOT edu>
Subject: Re: cygwin and windows API
Date: Thu, 09 Aug 2007 11:42:42 -0400
Lines: 15
Message-ID: <f9fclc$nqq$1@sea.gmane.org>
References: <ed4892840708090828q3a06cd64ke18cf3053e769e8a AT mail DOT gmail DOT com>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.12 (Windows/20070509)
In-Reply-To: <ed4892840708090828q3a06cd64ke18cf3053e769e8a@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

Steven Woody wrote:
> hi,
> 
> can i directly call Windows APIs ( such as creating a window, reading
> from a file ) from a cygwin program written in C ?  if the answer is
> yes, i want to know how i should do that, thanks!
> 
> 

Just #include <windows.h> and write whatever windows program you want, 
it will compile fine with gcc. If your question is how to write windows 
programs, this list isn't likely to help you out but there is tons of 
info on the web, you can start here: http://www.winprog.org/tutorial/

-lewis


--
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