Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Reply-To: <jimen@adtech-inc.com>
From: "Jimen Ching" <jimen@adtech-inc.com>
To: "'Mumit Khan'" <khan@thor.xraylith.wisc.edu>
Cc: <cygwin@sourceware.cygnus.com>
Subject: RE: windres and CONTROL object 
Date: Fri, 12 Nov 1999 10:25:13 -1000
Message-ID: <000a01bf2d4c$06cbd7d0$5265000a@jching.alii.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
In-Reply-To: <199911121721.LAA27166@mercury.xraylith.wisc.edu>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Importance: Normal

>_sntprintf and _tcslen are in tchar.h (not the underscore!) and 

You're right, I should have did a grep first, sorry.  I didn't know
_tcslen was a macro.  Anyway, I now did a grep (on 20.1).  The macro
is only defined in mingw32/tchar.h.  There is a file named tchar.h
in the same directory as windows.h, but this header does not define
_tcslen.

I tried using -mno-cygwin, but that causes other errors in stdlib.h.
Shouldn't tchar.h define _tcslen independent of whether -mno-cygwin
is used or not?

Note, though the program doesn't really use the cygwin API, I don't
care if this API is linked into the binary.

>GetSystemPowerStatus in winbase.h. 

How do I use this function?  The source file already includes windows.h,
so this is not a problem during compile.  But I get an undefined symbol
when linking.  I read the FAQ and it says not to include -lkernel32.
I've also tried to add "@4" to the end of the function call, but I get
a compile error.  So what am I doing wrong?

--jc
--
jimen@adtech-inc.com     Adtech, Inc.    (808) 734-3300


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

