 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Babak Guest
|
Posted: Tue Apr 25, 2006 11:03 pm Post subject: Persisisting on COM Port |
|
|
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 |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Apr 25, 2006 11:03 pm Post subject: Re: Persisisting on COM Port |
|
|
"Babak" <I-afraid (AT) spam (DOT) net> wrote in message
news:444e9b9f (AT) newsgroups (DOT) borland.com...
| Quote: | 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.
|
Have you read the articles at MSDN yet? There is detailed information on
reading/writing data over those ports. There is a whole chapter on the
subject:
Communications Resources
http://msdn.microsoft.com/library/en-us/devio/base/communications_resources.asp
Gambit |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|