Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

“02” code at the beginning of each command is inexplicably translated to hex “6F”

3 posts in Objects Last posting was on 2004-11-03 15:11:54.0Z
Thomas A Persha Posted on 2004-10-30 16:02:13.0Z
Sender: 7212.4182e4db.1804289383@sybase.com
From: Thomas A Persha
Newsgroups: sybase.public.powerbuilder.objects
Subject: “02” code at the beginning of each command is inexplicably translated to hex “6F”
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4183bb01.7ad5.1681692777@sybase.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 30 Oct 2004 09:02:09 -0700, 10.22.241.42
Lines: 26
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 30 Oct 2004 09:02:11 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 30 Oct 2004 09:02:13 -0700
X-Trace: forums-1-dub 1099152133 10.22.108.75 (30 Oct 2004 09:02:13 -0700)
X-Original-Trace: 30 Oct 2004 09:02:13 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8069
Article PK: 735337

10/29/2004 - I have a rather unusual problem. I have created
an accounting application using Power Builder 4.0. I have
converted that application to Power Builder 6.0. I have used
6.0 to create executables in the form of DLL’s for
distribution to my users. One of the features that this
program contains is the ability to print bar code labels.
For this purpose I am using a DataMax 4806 bar code printer.
The application will produce excellent labels in testing
mode under both Power Builder 4.0 and 6.0 and with compiled
Power Builder 4.0 PBD’s. However, when I run the
application using the executable in the DLL format as
created by Power Builder 6.0 the bar code labels fail to
print. The reason for this is rather bizarre. The DataMax
bar code printer uses hex “02” to begin their command
string. When the executable in the DLL format generated by
Power Builder 6.0 creates the printer commandstrings the hex
“02” code at the beginning of each command is
inexplicably translated to hex “6F”. My question is
why? WHAT THE HECK IS GOING ON? Please send any help you
might have regarding this to tom@bcc-software.com. Thank you
in advance for your help. Thomas Persha.

Update 10/30/2004 - I think the problem centers around the
PrintSend() function. Anyone try to solve this using the
WritePrinter API call? I have tried this function but have
been unable to get past the Error 15 function call message.


Russ Colburn Posted on 2004-11-02 23:00:17.0Z
From: "Russ Colburn" <russellc-nosp@m-accidentfund.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <4183bb01.7ad5.1681692777@sybase.com>
Subject: Re: "02" code at the beginning of each command is inexplicably translated to hex "6F"
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 206-crt-blk1.accidentfund.com
X-Original-NNTP-Posting-Host: 206-crt-blk1.accidentfund.com
Message-ID: <41881181$1@forums-1-dub>
Date: 2 Nov 2004 15:00:17 -0800
X-Trace: forums-1-dub 1099436417 216.157.206.2 (2 Nov 2004 15:00:17 -0800)
X-Original-Trace: 2 Nov 2004 15:00:17 -0800, 206-crt-blk1.accidentfund.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8071
Article PK: 735342

Try compiling as PBDs like you did in PB4. The Dll compoler is not nearly
as well tested (in the field by real users) as the PBD compiler is. There
are very few times that compiling to DLL with result in a faster app. And
there are many pitfalls to using DLLs.

HTH

Russ
<Thomas A Persha> wrote in message
news:4183bb01.7ad5.1681692777@sybase.com...
10/29/2004 - I have a rather unusual problem. I have created
an accounting application using Power Builder 4.0. I have
converted that application to Power Builder 6.0. I have used
6.0 to create executables in the form of DLL's for
distribution to my users. One of the features that this
program contains is the ability to print bar code labels.
For this purpose I am using a DataMax 4806 bar code printer.
The application will produce excellent labels in testing
mode under both Power Builder 4.0 and 6.0 and with compiled
Power Builder 4.0 PBD's. However, when I run the
application using the executable in the DLL format as
created by Power Builder 6.0 the bar code labels fail to
print. The reason for this is rather bizarre. The DataMax
bar code printer uses hex "02" to begin their command
string. When the executable in the DLL format generated by
Power Builder 6.0 creates the printer commandstrings the hex
"02" code at the beginning of each command is
inexplicably translated to hex "6F". My question is
why? WHAT THE HECK IS GOING ON? Please send any help you
might have regarding this to tom@bcc-software.com. Thank you
in advance for your help. Thomas Persha.

Update 10/30/2004 - I think the problem centers around the
PrintSend() function. Anyone try to solve this using the
WritePrinter API call? I have tried this function but have
been unable to get past the Error 15 function call message.


Chris Pollach Posted on 2004-11-03 15:11:54.0Z
From: "Chris Pollach" <PollachC@SCC-CSC.gc.ca>
Newsgroups: sybase.public.powerbuilder.objects
References: <4183bb01.7ad5.1681692777@sybase.com> <41881181$1@forums-1-dub>
Subject: Re: "02" code at the beginning of each command is inexplicably translated to hex "6F"
Lines: 44
Organization: The Supreme Court of Canada
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: firewall.scc-csc.gc.ca
X-Original-NNTP-Posting-Host: firewall.scc-csc.gc.ca
Message-ID: <4188f53a$1@forums-1-dub>
Date: 3 Nov 2004 07:11:54 -0800
X-Trace: forums-1-dub 1099494714 209.47.227.130 (3 Nov 2004 07:11:54 -0800)
X-Original-Trace: 3 Nov 2004 07:11:54 -0800, firewall.scc-csc.gc.ca
X-Authenticated-User: pbtenbeta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8072
Article PK: 735339

Not in the latest releases!

"Russ Colburn" <russellc-nosp@m-accidentfund.com> wrote in message
news:41881181$1@forums-1-dub...
> Try compiling as PBDs like you did in PB4. The Dll compoler is not nearly
> as well tested (in the field by real users) as the PBD compiler is. There
> are very few times that compiling to DLL with result in a faster app. And
> there are many pitfalls to using DLLs.
>
> HTH
>
> Russ
> <Thomas A Persha> wrote in message
> news:4183bb01.7ad5.1681692777@sybase.com...
> 10/29/2004 - I have a rather unusual problem. I have created
> an accounting application using Power Builder 4.0. I have
> converted that application to Power Builder 6.0. I have used
> 6.0 to create executables in the form of DLL's for
> distribution to my users. One of the features that this
> program contains is the ability to print bar code labels.
> For this purpose I am using a DataMax 4806 bar code printer.
> The application will produce excellent labels in testing
> mode under both Power Builder 4.0 and 6.0 and with compiled
> Power Builder 4.0 PBD's. However, when I run the
> application using the executable in the DLL format as
> created by Power Builder 6.0 the bar code labels fail to
> print. The reason for this is rather bizarre. The DataMax
> bar code printer uses hex "02" to begin their command
> string. When the executable in the DLL format generated by
> Power Builder 6.0 creates the printer commandstrings the hex
> "02" code at the beginning of each command is
> inexplicably translated to hex "6F". My question is
> why? WHAT THE HECK IS GOING ON? Please send any help you
> might have regarding this to tom@bcc-software.com. Thank you
> in advance for your help. Thomas Persha.
>
> Update 10/30/2004 - I think the problem centers around the
> PrintSend() function. Anyone try to solve this using the
> WritePrinter API call? I have tried this function but have
> been unable to get past the Error 15 function call message.
>
>