Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #6881

Re: cDeviceName _WINDEVMODE update printer name BYTE ARRAY

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Uwe Heyer" <uwe.heyer@aristik.de>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: cDeviceName _WINDEVMODE update printer name BYTE ARRAY
Date 21 May 2014 17:28:34 GMT
Lines 24
Message-ID <bu4622Fe0gcU1@mid.individual.net> (permalink)
References <314b509e-bd05-40ce-a0f3-3327e750f6b1@googlegroups.com> <btu4jaF50jsU1@mid.individual.net> <adc42808-2870-4ee3-9123-079f361fe9c4@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-1
X-Trace individual.net Nn5FerOcZRHWzCExMxpiJQ5jISDltuNuVqnNtZ6Zj8WEqRptJB
Cancel-Lock sha1:IgqWnegKZklaAJ3nh8tzudj0NrE=
User-Agent XanaNews/1.18.1.6
Xref csiph.com comp.lang.clipper.visual-objects:6881

Show key headers only | View raw


Hi Phil,

you could try something like

sPrinter := "HP LaserJet 2200"
dwLen := SLen( sPrinter ) + 1
if dwLen <= CCHDEVICENAME // don't write behind EOT dmDeviceName[32]
 MemCopy( @structDevMode.dmDevicename[1], PSZ(_Cast, sPrinter), dwLen )
 or
 MemCopy( @structDevMode.dmDevicename, PSZ(_Cast, sPrinter), dwLen )

(or some other casting)

maybe above is something helpful, I may be wrong

Ahoj
-Uwe






Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

cDeviceName  _WINDEVMODE update printer name BYTE ARRAY Sherlock <sherlock@sherlock.com.au> - 2014-05-18 16:43 -0700
  Re: cDeviceName  _WINDEVMODE update printer name BYTE ARRAY "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2014-05-19 12:26 +0200
    Re: cDeviceName  _WINDEVMODE update printer name BYTE ARRAY Sherlock <sherlock@sherlock.com.au> - 2014-05-19 07:04 -0700
      Re: cDeviceName _WINDEVMODE update printer name BYTE ARRAY "Uwe Heyer" <uwe.heyer@aristik.de> - 2014-05-21 17:28 +0000
        Re: cDeviceName _WINDEVMODE update printer name BYTE ARRAY "Uwe Heyer" <uwe.heyer@aristik.de> - 2014-05-21 18:08 +0000

csiph-web