Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" 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 Content-Type: text/plain; format=flowed Message-ID: 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 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