🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15294

TPrinter Problem

#15294
From: Anthony
Date: Tue, 15 Jul 2003 20:09
18 lines
1478 bytes
Can ANYONE explain this?

HDC my_hdc1, my_hdc2, my_hdc3, my_hdc4;
 int width;
  Printer()->PrinterIndex = 0;
my_hdc1=Printer()->Handle;
  Printer()->PrinterIndex = 1;
my_hdc2=Printer()->Handle;
  Printer()->PrinterIndex = 2;
my_hdc3=Printer()->Handle;
  Printer()->PrinterIndex = 3;
my_hdc4=Printer()->Handle;

my_hdc1, my_hdc2, my_hdc3, my_hdc4 are all same.  Meaning that you cannot
get the handle of any printer other than the handle to the default printer.
What use is this?  How do you get the handle of a printer other than the
default?
Technical Details
Message-ID: <3f1460f3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d59131589fe63384,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-15 13:44:18 PST
From: "Anthony" <awhitesell@attbi.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: TPrinter Problem
Date: Tue, 15 Jul 2003 16:09:03 -0400
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 24.128.134.183
Message-ID: <3f1460f3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058300147 24.128.134.183 (15 Jul 2003 13:15:47 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail