?
Solved

Transfer a character via modem by mscomm

Posted on 2003-12-08
6
Medium Priority
?
315 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 200 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

Industry Leaders: 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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Make the most of your online learning experience.
Introduction to Processes
Starting up a Project

718 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