Article View: borland.public.cppbuilder.nativeapi
Article #1606Re: how to resolve conflicts in gdi+ ?
From: Bob Gonder
Date: Thu, 05 Jul 2007 20:55
Date: Thu, 05 Jul 2007 20:55
17 lines
2003 bytes
2003 bytes
Remy Lebeau (TeamB) wrote: >Then the compiler is wrong. There is no ambiquity in that code. The >Graphics class has only two constructors which accept an HDC as a >parameter. The first constructor accepts only an HDC by itself, >whereas the second constructor accepts an additional HANDLE parameter. >That parameter does not have a default value defined, however, so >there is no way that passing an HDC by itself to a Graphics >constructor like FromHDC(HDC) does can be ambiquious with the second >constructor. It doesn't matter if STRICT is defined or not. The >number of parameters dictates which constructor to call before the >parameter types are then validated. From my C perspective, those constructors are forward references (FromHDC(HDC) occurs before the HDC constructor is described). It seems to me that the compiler might make assumptions about a default constructor, but be unable to reconcile 2 different constructors that it doesn't know about.
Technical Details
Message-ID:
<hulq83pn7ogijmvnh46954o0d4ai7491fd@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<468d2ea0@newsgroups.borland.com> <468d312f$1@newsgroups.borland.com> <468d3c18@newsgroups.borland.com> <468d4237$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,42fc4c19e42cbb45 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: how to resolve conflicts in gdi+ ? Date: Thu, 05 Jul 2007 13:55:34 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <hulq83pn7ogijmvnh46954o0d4ai7491fd@4ax.com> References: <468d2ea0@newsgroups.borland.com> <468d312f$1@newsgroups.borland.com> <468d3c18@newsgroups.borland.com> <468d4237$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.69.88.167 X-Trace: newsgroups.borland.com 1183668931 69.69.88.167 (5 Jul 2007 13:55:31 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail