🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi
Article #334587

Re: Port szeregowy, drukarka fiskalna znak NULL

#334587
From: PaSkol
Date: Fri, 06 Jan 2012 13:55
24 lines
2041 bytes
W dniu 2012-01-06 14:36, Przemyslaw Rokicki pisze:
>>>       until (writeSerialPort(hCommDev, Strlen(bufferOut))<>    FALSE);
>
> nic to nie dało, do drukarki nie idzie cały string bo nie ma zadnego
> komunikatu.

Co to jest writeSerialPort? Skoro korzystasz z API, to czy ta funkcja 
uruchamia WriteFile? Skąd writeSerialPort ma wiedzieć gdzie są dane do 
wysłania? Poza tym StrLen operujące na bufferOut automatycznie skraca 
bufferOut do pierwszego zera w treści. Więc i tak reszta nie pójdzie na 
port.

> Zresztą problem pewnie występuje na poziomie tworzenia stringa bo nie
> wyświetla w showMessage jak pisałem wyżej.

A to akurat może wynikać ze specyfiki ShowMessage, który traktuje 
łańcuch w konwencji C.


-- 
Dearth PaSkol

- Ciemna druga strona jest.
- Nie marudź Yoda, tylko jedz tego tosta.
Technical Details
Message-ID: <je6uhe$fq6$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <f0fe9b14-3716-4ff0-a8b9-46d680215996@q11g2000vbq.googlegroups.com> <628157f7-940a-46dc-9570-eb77d6b8edba@m4g2000vbc.googlegroups.com> <je4rcp$4j5$1@news.dialog.net.pl> <db4d62e5-5b51-483a-be8a-1528682b9e51@q11g2000vbq.googlegroups.com> <je6rb4$4tr$1@inews.gazeta.pl> <18537ecf-ae37-4437-b084-e89a12840b0b@o14g2000vbo.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: PaSkol <DearthNOSPAMpaskol@op.pl>
Newsgroups: pl.comp.lang.delphi
Subject: Re: Port szeregowy, drukarka fiskalna znak NULL
Date: Fri, 06 Jan 2012 14:55:33 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 24
Message-ID: <je6uhe$fq6$1@inews.gazeta.pl>
References: <f0fe9b14-3716-4ff0-a8b9-46d680215996@q11g2000vbq.googlegroups.com> <628157f7-940a-46dc-9570-eb77d6b8edba@m4g2000vbc.googlegroups.com> <je4rcp$4j5$1@news.dialog.net.pl> <db4d62e5-5b51-483a-be8a-1528682b9e51@q11g2000vbq.googlegroups.com> <je6rb4$4tr$1@inews.gazeta.pl> <18537ecf-ae37-4437-b084-e89a12840b0b@o14g2000vbo.googlegroups.com>
NNTP-Posting-Host: host-31-6-138-70.dynamic.mm.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1325858158 16198 31.6.138.70 (6 Jan 2012 13:55:58 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Fri, 6 Jan 2012 13:55:58 +0000 (UTC)
X-User: paskol
In-Reply-To: <18537ecf-ae37-4437-b084-e89a12840b0b@o14g2000vbo.googlegroups.com>
User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:8.0) Gecko/20111105 Thunderbird/8.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit