🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools.owl
Article #62

TPrintDC::DeviceCapabilities and paper bin-names

#62
From: Finn Aasheim
Date: Fri, 20 Feb 1998 00:00
21 lines
1350 bytes
My problem is getting paper bin names from DeviceCapabilities with
DC_BINNAMES. How exactly should the output structure look??

I've tried chars, arrays of chars, pointer arrays of chars and this
structure (loosely mentioned in the help file) :

struct MyBinData {
    short BinList[cBinMax];
    char PaperNames[cBinMax][cchBinName];
};

But nothing seems to work.  Either i get only the first paperbin, and then
only garbage, or even weirder (with pointer arrays i think t'was): I get the
whole first binname, then the second name, minus the first character
(nvelope) and then less and less until I get empty strings.

Does anyone sit on information that could help me with this, or know of some
other method for aquiring bin names???

Finn Aasheim, Norway.
Technical Details
Message-ID: <6cjd8g$8c$1@o.online.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fe201,b69af4591f98033e,start
X-Google-Attributes: gidfe201,public
X-Google-Thread: 108ebe,b69af4591f98033e,start
X-Google-Attributes: gid108ebe,public
From: "Finn Aasheim" <finnaa@online.no>
Subject: TPrintDC::DeviceCapabilities and paper bin-names
Date: 1998/02/20
Message-ID: <6cjd8g$8c$1@o.online.no>
X-Deja-AN: 326868222
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: Telenor Online Public Access
Newsgroups: comp.os.ms-windows.programmer.tools.owl,borland.public.cpp.owl