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

From "Uwe Heyer" <uwe.heyer@aristik.de>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: cDeviceName _WINDEVMODE update printer name BYTE ARRAY
Date 2014-05-21 17:28 +0000
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>

Show all headers | 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