Solved

MSComm.vbx

Posted on 1998-07-12
6
635 Views
Last Modified: 2008-02-01
How do I connect 2 computers together using mscomm? I want to be able to call a computer from the phone and be able to pick it up with the other computer. I can do all of this so far but I am unable to send data from one computer to another. I would rather use mscomm but anything else will also do. I am using VB 3.0 16bit version.
0
Comment
Question by:Hanky367
6 Comments
 
LVL 1

Expert Comment

by:khaledc
ID: 1465533
Well first you have to establish what sort of communication protocol you are going to use.
Second, you have to write a program that send and receive data from/to Fax Modem. You can do that by using MSCOMM and with the help of your Fax Modem Manual.
With a Modem, you can either send/receive a binary or an ascii data, depends on what you are after.
What I suggest is to take this guidlines and start working on the program.
Try to divide the question into sub-questions.
Hope this will get you started.
0
 
LVL 1

Expert Comment

by:khaledc
ID: 1465534
Another thing, try to use Hyper Terminal (under win95), or Terminal.exe (under win3.xx).
These program are very handy to establish communication between computers.
Note that Terminal.exe still exists under win95, you may find it under the directory "C:\WINDOWS".
Have fun
0
 
LVL 7

Expert Comment

by:kamall
ID: 1465535
I have a sample project that will send commands to the modem (you enter the command in a text box) and receives the answer.
You can use the same project to send commands (or text strings) from one computer to another.
I wrote the project in VB5 but I can convert it to VB3 16-bit.
If you think that it will help you, just leave me a comment with your e-mail address.

Regards.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Accepted Solution

by:
minah earned 200 total points
ID: 1465536
You can add the following code to send:-
 mscomm1.output = datatosend
 mscomm1.output = 0x0a (Line Feed)

on the receiving end:-
 datareceivd = mscomm1.input
0
 

Author Comment

by:Hanky367
ID: 1465537
Actually, I have allready figured out this question. my problem is that i did not make RTSEnabled property to True. But Thanks for your help anyway! I will still give you the point.
0
 

Author Comment

by:Hanky367
ID: 1465538
Actually, I have allready figured out this question. my problem is that i did not make RTSEnabled property to True. But Thanks for your help anyway!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

820 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