delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/16/14:17:53

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Originating-IP: [24.166.182.108]
From: "rob franz" <rob_fu AT msn DOT com>
To: cygwin AT cygwin DOT com
Subject: win32 api and using in Cygwin.
Date: Wed, 16 May 2001 13:16:34 -0500
Mime-Version: 1.0
Message-ID: <F7pRqurHGpltWvsu0Hb00009f83@hotmail.com>
X-OriginalArrivalTime: 16 May 2001 18:16:35.0226 (UTC) FILETIME=[5764BFA0:01C0DE34]

Hi,
This isn't a programming question, but I think more of a setup question...

I setup cygwin using the setup.exe from the web site.  Everything seems to 
be in order, but I am having some problems compiling programs that have 
elements of win32 in them. For example, in a simple program, I can get a 
message box to pop up with no problems, but simple data types such as HDC 
and PAINTSTRUCT are unrecognized and therefore treated as parse errors. I've 
included windows.h, and that should be all I need, right?  I've also tried 
adding compiler flags, such as
-mwindows, but i still get these data types treated as parse errors....

some code:

#include <windows.h>

int   WINAPI WinMain(
      HINSTANCE   hInstance,
      HINSTANCE   hPrevInstance,
      LPSTR       pszCmdLine,
      int         nCmdShow
  )
{
   WNDCLASS wndClass;

   wndClass.style = 0;
   ...
}

Just an example, but when I try to reference an attribute of wndClass, it 
will get treated as a parse error....

any ideas on what I'm doing wrong or has someone seen this before?  I'm very 
new to cygwin.

Thanks in advance,
ROb



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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