If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: I have a project on visual basic-sms

Well, there is at least the form file missing. It seems to be named Lab3_2.frm If graphical elements are contained, a file Lab3_2.frx would be there, too.
You should have the complete project in one folder, so best put everything in zip and upload it.

Put this code in a Sub InitModem() and call it from Form_Load().
Use MSComm1.PortOpen = False to close the port only once, in Form_Unload(), so the port stays open all the time while the program is running.
This eliminates the many port initialisations and if I get another upload from you I only have to switch to my settings to test it, once.

As how to organize an SMS program I have attached you a neat and easy sample from another guy here from the forums (can't remember who it was).
It is not too complicated and maybe gives you a clue or another. Please try to study it.

The main difference is, you are directly sending to the modem and then listening for the answer.
The sample works with the _OnComm() event of the MSComm control. It is executed whenever a character is received. The complete answer is assembled like that and then interpreted.

I hope this helps you as a first step. If you have difficulties in understanding the concepts, come back for more. Meanwhile I will try to find some time to get your sample working with my modem.

Re: I have a project on visual basic-sms

Odd. I just installed VB6 a month ago, with SP6, and now I find I don't have mscomm32.ocx installed! Don't know what happened, but I found it in an old folder. You can download it with any vb6 app that uses a modem.

The SMS program has other problems. A module is likely missing.

Code:

Set SMS_Conn = New Shared_Connections
Set SMS_Server = SMS_Conn.GetHandle

Re: I have a project on visual basic-sms

The program was not written by me, but I found it quite useful when seeing how things were done.
Please comment out these two lines. They might refer to some class the author was preparing to create. If they are commented out, the program communicates perfectly with your modem.
Check in Sub Initialise_Modem() if the settingsComm1.CommPort = 3
Comm1.Settings = "19200,n,8,1" (I think you had 115200)
are suitable for your modem.

If you find this too complicated, we can try to go back to your first attempt and rebuild it step by step to get it run.

Re: I have a project on visual basic-sms

Sure I have. Without it I wouldn't get communication with my SMS terminal.
It must reside in WINDOWS\SYSTEM32 folder.
Do you want me to post it for you, or can you download from M$?
Usually it comes with VB6/VS6. After installing VB6 you should have it. You should still have it after installing SP6.

Re: I have a project on visual basic-sms

Re: I have a project on visual basic-sms

I saw your flowchart and think a database would be a little overdone for that purpose.

I would go for a simple text file, having records like:
Table#=Size, example 1=8 meaning table 1 has room for 8 people.
Unless you want to store reservations for next week or so.
Your flowchart does not even imply any reservation date, so i assumed it's just an in-memory application.

1st of all can u help mi turn it into an auto reply whenever an integer is send to a modem?

Huh? I don't understand. You dont send integers to the modem. You always send clean ASCII text, values are sent as strings. Also anything sent to the modem is usually an AT command.
What do you mean by auto reply?

@David: Please keep me informed if you find out how you lost the file.