BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Persisisting on COM Port

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
Babak
Guest





PostPosted: Tue Apr 25, 2006 11:03 pm    Post subject: Persisisting on COM Port Reply with quote



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





PostPosted: Tue Apr 25, 2006 11:03 pm    Post subject: Re: Persisisting on COM Port Reply with quote



"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.