windres and CONTROL object
Tue Nov 30 23:39:00 GMT 1999
On 12 Nov 1999 10:25:13 -1000, you wrote:
> Shouldn't tchar.h define _tcslen independent of whether -mno-cygwin
> is used or not?
It only makes sense for tchar.h to do this if the run-time library has
functions that implement the appropriate strlen clones. tchar is a non-POSIX
convenience that works a little differently in the M$ and Unix worlds.
> 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
> 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?
According to my understanding (and Microsoft's) the API
is only available as follows:
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winbase.h; include windows.h.
Library: Use kernel32.lib
So you won't want to link this statically anyway (and so this libkernel32.a
has helped you by _not_ including the symbol, unlike Microsoft's
kernel32.lib). Instead do the LoadLibrary/GetProcAddress thing, check the
GetProcAddress return value and do something appropriate if it doesn't find
Dirk Fieldhouse Logica UK Limited
email@example.com 75 Hampstead Road
c=gb;a=attmail;p=logica; London NW1 2PL
+44 (20) 7637 9111
- not speaking for Logica
Want to unsubscribe from this list?
Send a message to firstname.lastname@example.org
More information about the Cygwin