What I mean is the description of the printers. They are about
45 characters. I could do some parsing, but what I don't get is
why the type where the description is loaded to it only has 32 to
store the printername.
Most of the examples that MS shows are examples that compare the
default printer with the selected one (description comparison).
If it differs then the printer settings are set to the selected one.
But if I want to set the printer to the new one I only have a part of
the printer name.
ie:
\\PATH\PATH\HP LASERJET 2100 SERIES LOCATION HELPDESK TO
\\PATH\PATH\HP LASERJET 2100 SERIES LOCATION ADMIN
New Printer description becomes: \\PATH\PATH\HP LASERJET 2100 SER
------------------
Announcement
Collapse
No announcement yet.
CCHDEVICENAME to short
Collapse
X
-
Guest replied
-
If your talking about 1 charachter that might be because it's declared as asciiz wich claims allways 1 byte.
TYPE DEVMODE
dmDeviceName AS ASCIIZ * %CCHDEVICENAME
If so, you could try to use a string instead.
------------------
[email protected]
Leave a comment:
-
CCHDEVICENAME to short
I'm using the printerdialog and I have a problem with the devicename
constant. In the winapi this constant is declared as 32, so the devicename is
always max 32 characters long.
We have two printers that start with the same network location and almost
the same printer name except that the last word defines the location.
Because of the maxlength of CCHDEVICENAME I can't compare these two printers
with eachother to see if something changed.
I already looked at some vb examples,but they can't handle it also.
Is there any (standard) option to get the more longer printer devicenames,
32 chars is to short.
------------------
Tags: None
Leave a comment: