Solved

Transfer a character via modem by mscomm

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
find a node in VST 2 63
WMI, model #, retrieving information 10 114
Non-recursive backtracking, using a stack 1 101
Advice on Xojo as a development tool over VB. 4 39
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.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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 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…

911 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

23 Experts available now in Live!

Get 1:1 Help Now