| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Message-ID: | <001b01be761d$80145d60$0f0a0181@devel014> |
| From: | "Nirmal Prasad" <nprasad AT truept DOT com> |
| To: | "John F. Kolen" <jkolen AT typhoon DOT coginst DOT uwf DOT edu> |
| Cc: | <cygwin AT sourceware DOT cygnus DOT com> |
| Subject: | Re: Win32 Defines & C++ |
| Date: | Wed, 24 Mar 1999 12:41:05 -0500 |
| MIME-Version: | 1.0 |
| 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 AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |