Solved

Transfer a character via modem by mscomm

Posted on 2003-12-08
6
313 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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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 …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

627 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