Solved

Transfer a character via modem by mscomm

Posted on 2003-12-08
6
272 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
  • 2
6 Comments
 
LVL 9

Accepted Solution

by:
bhagyesht earned 50 total points
Comment Utility
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
Comment Utility
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
Comment Utility
to define a byte array

Dim mybyte(1 To 3) As Byte

now transmit it as
mscomm1.output mybyte
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to split this in C++ 4 76
powerN  challenge 3 46
pairs challenge 5 44
wordmultiple challenge 12 89
This article will show, step by step, how to integrate R code into a R Sweave document
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now