Article View: borland.public.cppbuilder.nativeapi
Article #12099Re: DPtoLP
From: Bob Gonder
Date: Sat, 27 Dec 2003 05:10
Date: Sat, 27 Dec 2003 05:10
22 lines
1682 bytes
1682 bytes
M. Finch wrote: > > SetMapMode(hDC,MM_ANISOTROPIC); > SetWindowExtEx(hDC, xwin,ywin,NULL); > SetViewportExtEx(hDC,width,-height,NULL); > > retval = DPtoLP(hDC, &pt, 1); > reterr = GetLastError(); > >I find that I get an error in the retval and I retrieve the error using >GetLastError() which is 87. 87 is Invalid Parameter as defined in System >Error Codes on MSDN. Just guessing since you don't show what x/ywin and widht/height are, but I suspect that > SetViewportExtEx(hDC,width,-height,NULL); is wrong. - - - p.s. Sorry to have emailed this again, finally know what I did to do that.
Technical Details
Message-ID:
<vo4quvguurahqq592e42bl43189uo1ig8i@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!hermes.visi.com!zeus.visi.com!news-out.visi.com!petbe.visi.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3fec8cda$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,51ae0f0f4731a002 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-26 21:38:10 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: DPtoLP Date: Fri, 26 Dec 2003 21:10:32 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <vo4quvguurahqq592e42bl43189uo1ig8i@4ax.com> References: <3fec8cda$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: 209.179.233.24 X-Trace: newsgroups.borland.com 1072501832 209.179.233.24 (26 Dec 2003 21:10:32 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!hermes.visi.com!zeus.visi.com!news-out.visi.com!petbe.visi.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail