Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <001b01be761d$80145d60$0f0a0181@devel014>
From: "Nirmal Prasad" <nprasad@truept.com>
To: "John F. Kolen" <jkolen@typhoon.coginst.uwf.edu>
Cc: <cygwin@sourceware.cygnus.com>
Subject: Re: Win32 Defines & C++
Date: Wed, 24 Mar 1999 12:41:05 -0500
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3

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

