Solved

Transfer a character via modem by mscomm

Posted on 2003-12-08
6
307 Views
Last Modified: 2010-04-17
Hi
I want to write a programm in VB that send several character for example("ali") via modem
in Binary mode(inputmode=Binary) and receive this charrecter in other Pc.
How can send data in Binary modewith mscomm.
please send me source code.
thanks.
0
Comment
Question by:dog_peace
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 9

Accepted Solution

by:
bhagyesht earned 50 total points
ID: 9902021
you can send a byte array using mscomm's output method
declare a variant
take your data into a byte array.
assign the byte array to the variant
and pass it to the mscomm1.output
0
 

Author Comment

by:dog_peace
ID: 9902188
Hi
I don't know how can define a byte Array and assign the byte array. I define a String variable
and send  for example "a" to  another pc and my variable in other pc(Receiver) is string .but I don' receive "a" .I receive this character "?" . my Inputmode=Binary.
If possible for you send me  example that how can define a byte Array variable and take it in mscomm1.output.
when I want send a file how can this work?
Good Luck
0
 
LVL 9

Expert Comment

by:bhagyesht
ID: 9902235
to define a byte array

Dim mybyte(1 To 3) As Byte

now transmit it as
mscomm1.output mybyte
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What does != "" mean in programming 8 189
Where to download python requests library 6 108
Java pass by reference 3 74
Java ArrayList and if statement 2 55
A short article about a problem I had getting the GPS LocationListener working.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question