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" 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: References: <314b509e-bd05-40ce-a0f3-3327e750f6b1@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 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