Article View: comp.os.ms-windows.programmer.win32
Article #2192Re: Printing With Win32 API, MSDN example gives error
From: szuchymj
Date: Sun, 04 Sep 2005 01:30
Date: Sun, 04 Sep 2005 01:30
8 lines
1783 bytes
1783 bytes
I found the answer. Calling SetAbortProc after showing the print dialog via PrintDlg causes an error. Call it before PrintDlg, and the error goes away. It is confusing because the MSDN example appears to call SetAbortProc after the PrintDlg call. Actually there is no PrintDlg call in the MSDN example, but it is implied that you have already gotten the printer DC via PrintDlg or CreateDC.
Technical Details
Message-ID:
<1125797458.355143.293200@o13g2000cwo.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mailReferences:
<1125794713.945948.34130@g43g2000cwa.googlegroups.com> <1125796596.258211.216430@o13g2000cwo.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 113dfb,24b6e7811432affe X-Google-Thread: 1091e5,24b6e7811432affe X-Google-Attributes: gid113dfb,gid1091e5,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail From: szuchymj@jmu.edu Newsgroups: comp.os.ms-windows.programmer.win32,borland.public.delphi.winapi Subject: Re: Printing With Win32 API, MSDN example gives error Date: 3 Sep 2005 18:30:58 -0700 Organization: http://groups.google.com Lines: 9 Message-ID: <1125797458.355143.293200@o13g2000cwo.googlegroups.com> References: <1125794713.945948.34130@g43g2000cwa.googlegroups.com> <1125796596.258211.216430@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: 66.83.218.130 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1125797466 25689 127.0.0.1 (4 Sep 2005 01:31:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 4 Sep 2005 01:31:06 +0000 (UTC) In-Reply-To: <1125796596.258211.216430@o13g2000cwo.googlegroups.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=66.83.218.130; posting-account=h-CzxBMAAACeKXWvd0mMfZjAXz9xvSTYFf_H1NiezujMeUnvRCeTLg