Article View: comp.os.ms-windows.programmer.tools.owl
Article #61Re: TPrintDC::DeviceCapabilities and paper bin-names
From: Kevin (Borland)
Date: Fri, 20 Feb 1998 00:00
Date: Fri, 20 Feb 1998 00:00
35 lines
1794 bytes
1794 bytes
The pOutput should just be a long pointer to a string. The string
should be setup as follows: char PaperNames [cBinMax][cchBinName];
Not a structure. If you set this to NULL the return value of
DeviceCapabilities will be the number of bins available. Otherwise
the return value will be the number of bins copied.
Hope this helps
Kevin
On Fri, 20 Feb 1998 09:07:35 +0100, "Finn Aasheim" <finnaa@online.no>
wrote:
>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:
<34eda0e4.159877962@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6cjd8g$8c$1@o.online.no>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108ebe,b69af4591f98033e X-Google-Attributes: gid108ebe,public X-Google-Thread: fe201,b69af4591f98033e X-Google-Attributes: gidfe201,public From: spamex_kscardina@corp.borland.com (Kevin (Borland)) Subject: Re: TPrintDC::DeviceCapabilities and paper bin-names Date: 1998/02/20 Message-ID: <34eda0e4.159877962@forums.borland.com> X-Deja-AN: 326954546 References: <6cjd8g$8c$1@o.online.no> Organization: Borland Newsgroups: comp.os.ms-windows.programmer.tools.owl,borland.public.cpp.owl