CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    Join Date
    Nov 2007
    Posts
    11

    Restaurent table booking sms systems(urgent)

    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
    Attached Files Attached Files
    Last edited by Jaysentan; December 5th, 2007 at 07:52 PM.

  2. #2
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: I have a project on visual basic-sms

    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.

  3. #3
    Join Date
    Nov 2007
    Posts
    11

    Re: I have a project on visual basic-sms

    Err what file do i need to upload too can name them? cause i only open the whole project using this file...

  4. #4
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    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.

  5. #5
    Join Date
    Nov 2007
    Posts
    11

    Re: I have a project on visual basic-sms

    Wof here's my file sry for e late reply....
    Attached Files Attached Files

  6. #6
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: I have a project on visual basic-sms

    Ok let's get started somehow.
    First a few suggestions:
    For my modem works with different settings I'd have to rewrite every
    Code:
        MSComm1.CommPort = 1
        MSComm1.Settings = "115200,n,8,1"
        MSComm1.PortOpen = True
        MSComm1.RTSEnable = True
    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.
    Attached Files Attached Files

  7. #7
    Join Date
    Nov 2007
    Posts
    11

    Re: I have a project on visual basic-sms

    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

  8. #8
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    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
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  9. #9
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    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 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.

  10. #10
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: I have a project on visual basic-sms

    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.

    Even my DIALER sample crashes without it!
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  11. #11
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    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.

  12. #12
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: I have a project on visual basic-sms

    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.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  13. #13
    Join Date
    Nov 2007
    Posts
    11

    Re: I have a project on visual basic-sms

    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?

  14. #14
    Join Date
    Nov 2007
    Posts
    11

    Re: I have a project on visual basic-sms

    btw wof u have saw my flowchart rite? i think i nid a database?

  15. #15
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    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.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured