Booking your table no. through sms... i need to do a project regarding this using vb 6.0 any help from any pros' here.. mayb u can edit from my attached file.
My dead line is in 2 weeks time
Last edited by Jaysentan; December 5th, 2007 at 07:52 PM.
Well, jason, there's a lot of files mising. You only sent the .vbp and there is nothing in it for us to edit.
You have to send all files from your projects folder.
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.
hi i try to run it but it comes with a error
compile error
method or data not found
and so sorry i still dont get it at all, how to use it. i am a complete idiot in this
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
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 settings Comm1.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.
WoF - Do you have MSCOMM32.OCX? For some reason, I didn't, and I just installed vb6 w/sp6 after formatting on xp media center. It is probably somewhere on your machine, but I don't remember where.
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.
I found it in a backup folder from an app that I downloaded, but I assume that I had it at one point on the last machine, as I've run DIALER sample.
I've installed that copy in \system32 but I wondered if that was the problem initally, as I found out.
I've seen that you can download from a few sites, but rather than post it, I wanted to find out where my copy went. I posted in the newsgroup, so I'll see if any MVP's answer.
ya i strongly agree wid u wof mayb we should juz start from my project... 1st of all can u help mi turn it into an auto reply whenever an integer is send to a modem?
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.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.