delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Date: | Wed, 24 Jul 2002 19:01:55 +0400 |
From: | egor duda <deo AT logos-m DOT ru> |
Reply-To: | egor duda <cygwin AT cygwin DOT com> |
Organization: | deo |
X-Priority: | 3 (Normal) |
Message-ID: | <139542659513.20020724190155@logos-m.ru> |
To: | Sylvain Petreolle <spetreolle AT yahoo DOT fr> |
CC: | John Morrison <john DOT r DOT morrison AT ntlworld DOT com>, cygwin AT cygwin DOT com, |
mplayer-dev-eng AT mplayerhq DOT hu | |
Subject: | Re: How to call *windows* functions in a cygwin c program |
In-Reply-To: | <20020724144619.25389.qmail@web10108.mail.yahoo.com> |
References: | <20020724144619 DOT 25389 DOT qmail AT web10108 DOT mail DOT yahoo DOT com> |
MIME-Version: | 1.0 |
Hi! Wednesday, 24 July, 2002 Sylvain Petreolle spetreolle AT yahoo DOT fr wrote: SP> No, this is a bit more complicated. SP> The project is a video player that has been started on Linux. SP> To have _all_ codecs recognized and played with, it makes use SP> of windows DLLs, through windows emulation project parts. SP> Since emulating windows DLLs/functions under cygwin is a nonsense, SP> I looked after a way to compile it with cygwin win32 API calls. 1. Install 'w32api' package. 2. In your source file, add #include <windows.h> ... void some_function () { ... MessageBox (NULL, "foo", "bar", MB_OK); ... } 3. Add appropriate library from w32api package to the command you're using to link your application. 4. In case of problems, "Use the source, Luke (tm)". Egor. mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |