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



Hi, its been a while since i posted last about this subject, but i still haven't been able to use gtk+ and windows.h and windowsx.h in the same program. I have used windows.h and windowsx.h without any gtk+ and they work fine, but soon as i try to use these header files within a gtk+ program it outputs many error messages. Is there some kind of conflict when gtk+ and windows.h and windowsx.h are used together. Is there a solution to this.

Please help me, its driving me mad!

Thank you!








From: "Michal 'Gleba' Ziemski" <gtk roo k pl>
To: "Hammamur Rahman" <hrahman10 hotmail com>,<gtk-app-devel-list gnome org>
Subject: Re: #include <windows.h>,#include <windowsx.h>
Date: Tue, 28 Jan 2003 18:43:35 +0100

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
>

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


_________________________________________________________________
Express yourself with cool emoticons http://messenger.msn.co.uk




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