Article View: borland.public.cppbuilder.nativeapi
Article #13793Re: GetDeviceCaps not working with all printers.
From: Bob Gonder
Date: Sat, 13 Sep 2003 16:58
Date: Sat, 13 Sep 2003 16:58
17 lines
1787 bytes
1787 bytes
Bob Reeves wrote: >Anyone else having a problem with GetDeviceCaps() under Windows 2000 and >Builder 4.0 with some printer drivers? I have several printers loaded on a >Win 2000 computer and two of them throw an exception when I call >GetDeviceCaps() with PrinterIndex set to these printers. Builder throws up a >CPU box and stops. Most likely cause would be an invalid HDC parameter. It looks like you are using VCL. Check to make sure you are passing a valid hDC. > I have never been able to understand what good the >information in the CPU box is in the first place but that is not important There are thousands of reasons for execptions. The "CPU box" gives you a shot at determining exactly what/where the problem is.
Technical Details
Message-ID:
<3ti6mvopr70gvqksnpvqnmaongfrhu8fdc@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f6307be$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,90fc2fd2df76ffd6 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-13 10:01:17 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: GetDeviceCaps not working with all printers. Date: Sat, 13 Sep 2003 09:58:14 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <3ti6mvopr70gvqksnpvqnmaongfrhu8fdc@4ax.com> References: <3f6307be$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.165.76 X-Trace: newsgroups.borland.com 1063472300 67.31.165.76 (13 Sep 2003 09:58:20 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail