Re: #include <windows.h>,#include <windowsx.h>



I have tried the same using MinGW. If you include headers deployed with MS
SDK
you'll get a throng of errors. It's mostyly because these headers are
prepared for
MSVC (they require some MSVC standard defines like -D_WIN32) furthermore
they introduce some weird non-ANSI C constructs like

#define _VARIANT_BOOL    /##/

BTW Guess what this define shold be doing ;)

The best solution is to get the MinGW Win32 headers & link libs.
Everything works fine then.

Don't forgest to add -mms-bitfields during compilation(if compiling with
GCC).

If this fail then you still have the option of simply copying the
declarations of the required
funcs into your header file. You probably don't need the whole bunch of
headers
just to use couple of functions.

----- Original Message -----
From: "Hammamur Rahman" <hrahman10 hotmail com>
To: <gtk-app-devel-list gnome org>
Sent: Tuesday, January 28, 2003 6:17 PM
Subject: #include <windows.h>,#include <windowsx.h>



Hi, I need to use the libraries windows.h, windowsx.h in my gtk program.
I
need them so I can obtain the the size of disk drive size, labels etc.
But
soon as i include them i get a list of errors, some related to nperf.h.
Now
I'm getting these errors without even doing any of the main coding.  Whats
wrong, has anyone had similar problems.  Is there some kind of conflict
with
these libraries, or is there a library provided by gtk which does the same
operations as these libraries, or do you have to include something extra
in
your makefile.

Please help!!!!

Thank you!




_________________________________________________________________
Surf together with new Shared Browsing
http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]