Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages
Started by Babak
Tue, 25 Apr 2006 19:11
Persisisting on COM Port
Author: 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
Re: Persisisting on COM Port
Author: Remy Lebeau (TeamB)
Date: Tue, 25 Apr 2006 22:49
Date: Tue, 25 Apr 2006 22:49
19 lines
1470 bytes
1470 bytes
"Babak" <I-afraid@spam.net> wrote in message
news:444e9b9f@newsgroups.borland.com...
> 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads