> -----Original Message----- > From: Russ Hensel [SMTP:russ_s_hensel@YAHOO.COM] > Sent: Wednesday, April 23, 2003 12:45 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: PIC, VisualBasic, and Serial Comm. > > source= http://www.piclist.com/postbot.asp?id=piclist\2003\04\21\131803a > > Visual basic has an ocx, there is a free one on the net, contact me off > list if you want the reference. VB for this app kind of sucks, the ocx > wants to return a string an data with a binary 0 in it my fail to pass at > all ( an upgrade to return an array of > chars has not ( last time i checked ) been implementd. > > My way around this has been to use Java, I have a bunch of code > for this if it is a way you might want to go. > > Simply set the InputMode property to comInputModeBinary. The ocx then returns all data as a byte array within a variant. I have to admitt, I don't know why so many people have trouble with the mscomm control, it's very simple to set up and use if the help files are followed. Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= Any questions about Bookham's E-Mail service should be directed to postmaster@bookham.com. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics