This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: Win32 Defines & C++
- To: "John F. Kolen" <jkolen@typhoon.coginst.uwf.edu>
- Subject: Re: Win32 Defines & C++
- From: "Nirmal Prasad" <nprasad@truept.com>
- Date: Wed, 24 Mar 1999 12:41:05 -0500
- Cc: <cygwin@sourceware.cygnus.com>
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Sender: cygwin-owner@sourceware.cygnus.com
John F.Kolen Wrote :
>What about
>
>#include <winstuff>
>
>#undef GetNextWindow
>...
> void GetNextWindow(...
>
>#define GetNextWindow(h,c) GetWindow(h,c) /* somewhere in some
>
and Larry Hall Wrote :
>Why don't you just check to see if GetNextWindow() is defined and undefine
>it if it is in your code? This should work and requires only minor code
>changes...
hi,
first and formemost "thanks for the suggestion" but the problem with this
method is that if u consider the implementation of the method in the class
(this is usually the case for wrapper classes) i.e
void test::GetNextWindow(uint c)
{
//.. some checks...
::GetNextWindow(internal_handle,c);
//... some post processing for error handling
}
so now we run into a problem that the original GetNextWindow(..) has now
undefined. Well i found that the "inline" solution would work better than
#undef unless i am missing something.
Regards
Nirmal Prasad R.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com