Article View: borland.public.cppbuilder.nativeapi
Article #3811Persisisting on COM Port
From: Babak
Date: Tue, 25 Apr 2006 19:11
Date: Tue, 25 Apr 2006 19:11
21 lines
1530 bytes
1530 bytes
Hi !
Excuse me for my language but I'm screwd !!!
Long time ago I tried to write a function to send some character to ports
such as COM1,2 LPT etc...
But I still couldn't ! I'm getting crasy, my last hope is someone who help
me to write the function.
There is a Hardware on Electronic-board that accepts string to show,
For example in (windows hyper terminal ) if I type a2001 it clear the screen
and write 2001.
But my codes and applications are weak in it.
I would love to have a function like this :
//------------
bool MyHypeSend( AnsiString strPORT, AnsiString MyStr){
if(strPORT=="COM1")
//TpoDo
if(strPORT=="LPT1")
//etc...
}
//------------
Thanks in advanced
Technical Details
Message-ID:
<444e9b9f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,94a647529fd8352b,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Babak" <I-afraid@spam.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Persisisting on COM Port Date: Tue, 25 Apr 2006 23:41:46 +0430 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2479.0006 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006 NNTP-Posting-Host: 80.191.115.209 Message-ID: <444e9b9f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1146002335 80.191.115.209 (25 Apr 2006 14:58:55 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail