Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to open a cash drawer using VB6

How to open a cash drawer using VB6

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
13 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M mwith

    Dear All I am writing a simple program for a billing system. I use a cash drawer and a dot matrix printer. When I give a print command, I want to open that cash drawer tray. Can anyone help me to write the code for that? Thanks

    A Offline
    A Offline
    annathor
    wrote on last edited by
    #2

    how do you connect to the cash drawer mechanism? maybe the SerialPort class can help you? you are not givvin' us much info to work with.

    1 Reply Last reply
    0
    • M mwith

      Dear All I am writing a simple program for a billing system. I use a cash drawer and a dot matrix printer. When I give a print command, I want to open that cash drawer tray. Can anyone help me to write the code for that? Thanks

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #3

      First, stop what you are doing, chuck VB6 out and download VB.Net express, IT IS FREE. It may be a bit of a learning curve but at least it is a supported platform. VB6 is a DEAD platform.

      1 Reply Last reply
      0
      • M mwith

        Dear All I am writing a simple program for a billing system. I use a cash drawer and a dot matrix printer. When I give a print command, I want to open that cash drawer tray. Can anyone help me to write the code for that? Thanks

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #4

        What makes you think anyone can help you, without knowing what sort of cash register you have, how it works, and how you hope to interact with it ? As someone else said, VB6 is rubbish, you'd have to be insane to start a project with it today.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        1 Reply Last reply
        0
        • M mwith

          Dear All I am writing a simple program for a billing system. I use a cash drawer and a dot matrix printer. When I give a print command, I want to open that cash drawer tray. Can anyone help me to write the code for that? Thanks

          T Offline
          T Offline
          The Man from U N C L E
          wrote on last edited by
          #5

          As others have comment, VB6! history! I would add, dot matrix printer? equally history. In fact, a "program to open a cash drawer when you print", surely all cash registers come with that functionality built in!

          If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) www.JacksonSoft.co.uk

          L 1 Reply Last reply
          0
          • T The Man from U N C L E

            As others have comment, VB6! history! I would add, dot matrix printer? equally history. In fact, a "program to open a cash drawer when you print", surely all cash registers come with that functionality built in!

            If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) www.JacksonSoft.co.uk

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #6

            The Man from U.N.C.L.E. wrote:

            As others have comment, VB6! history! I would add, dot matrix printer? equally history.

            There are quite some developing countries who are still living in that history. The world isn't upgrading as a whole, and it'll take a while before everyone saved enough money to buy Windows 7 and a new dual-core. We're talking developing countries, where the companies aren't interested in the support that Microsoft isn't giving on VB6. Think computers that run Windows 98 without automatic updates. You don't want to install .NET on such a machine :)

            I are Troll :)

            L C J 3 Replies Last reply
            0
            • L Lost User

              The Man from U.N.C.L.E. wrote:

              As others have comment, VB6! history! I would add, dot matrix printer? equally history.

              There are quite some developing countries who are still living in that history. The world isn't upgrading as a whole, and it'll take a while before everyone saved enough money to buy Windows 7 and a new dual-core. We're talking developing countries, where the companies aren't interested in the support that Microsoft isn't giving on VB6. Think computers that run Windows 98 without automatic updates. You don't want to install .NET on such a machine :)

              I are Troll :)

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #7

              I have a friend here in UK who only upgraded from Windows 98 last year, and only then because he wanted to go to broadband.

              1 Reply Last reply
              0
              • L Lost User

                The Man from U.N.C.L.E. wrote:

                As others have comment, VB6! history! I would add, dot matrix printer? equally history.

                There are quite some developing countries who are still living in that history. The world isn't upgrading as a whole, and it'll take a while before everyone saved enough money to buy Windows 7 and a new dual-core. We're talking developing countries, where the companies aren't interested in the support that Microsoft isn't giving on VB6. Think computers that run Windows 98 without automatic updates. You don't want to install .NET on such a machine :)

                I are Troll :)

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #8

                In that case, they should use C++, surely ? VB6 was NEVER a good option.

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                L 1 Reply Last reply
                0
                • C Christian Graus

                  In that case, they should use C++, surely ? VB6 was NEVER a good option.

                  Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #9

                  Christian Graus wrote:

                  In that case, they should use C++, surely ? VB6 was NEVER a good option.

                  +5 To answer; that depends on my role vs. them :suss: I'd go for Delphi off course, and would recommend them a UI around the "cash-drawer-opening-interface" in Microsoft Access. Cheaper, easier to modify, and not much real chance of breaking important code. Since that would need be compiled separately. Nicely decoupled from the UI, just as best practices prescribe. But in their case? Well, VB6 is available, and there might not be that many C++ developers available o'er there.

                  "Where there's muck there's brass"

                  1 Reply Last reply
                  0
                  • M mwith

                    Dear All I am writing a simple program for a billing system. I use a cash drawer and a dot matrix printer. When I give a print command, I want to open that cash drawer tray. Can anyone help me to write the code for that? Thanks

                    J Offline
                    J Offline
                    Jaime Olivares
                    wrote on last edited by
                    #10

                    Brand and model is always a helpful

                    Best regards, Jaime.

                    M 1 Reply Last reply
                    0
                    • L Lost User

                      The Man from U.N.C.L.E. wrote:

                      As others have comment, VB6! history! I would add, dot matrix printer? equally history.

                      There are quite some developing countries who are still living in that history. The world isn't upgrading as a whole, and it'll take a while before everyone saved enough money to buy Windows 7 and a new dual-core. We're talking developing countries, where the companies aren't interested in the support that Microsoft isn't giving on VB6. Think computers that run Windows 98 without automatic updates. You don't want to install .NET on such a machine :)

                      I are Troll :)

                      J Offline
                      J Offline
                      Jaime Olivares
                      wrote on last edited by
                      #11

                      Eddy Vluggen wrote:

                      As others have comment, VB6! history! I would add, dot matrix printer? equally history.

                      Dot matrix printers still have a big share in ticket printer market. About vb6, I agree, it is totally deprecated. For serial communications you need an OCX component, while .net has it in the Base Class Library.

                      Best regards, Jaime.

                      1 Reply Last reply
                      0
                      • J Jaime Olivares

                        Brand and model is always a helpful

                        Best regards, Jaime.

                        M Offline
                        M Offline
                        mwith
                        wrote on last edited by
                        #12

                        Thanks for all of your comments. Only one has given a helpful word. Anyway I like to explain you. I am not a professional software developer. But I was a VB developer 10 years ago. Now it is too late to learn a new language. Because now I am in a differant field. and also I am in a developing country. These days I am developing a small software and I am using a cash drawer. But the problem is it has no serial interface. It has a cable with a RJ11 connector.

                        L 1 Reply Last reply
                        0
                        • M mwith

                          Thanks for all of your comments. Only one has given a helpful word. Anyway I like to explain you. I am not a professional software developer. But I was a VB developer 10 years ago. Now it is too late to learn a new language. Because now I am in a differant field. and also I am in a developing country. These days I am developing a small software and I am using a cash drawer. But the problem is it has no serial interface. It has a cable with a RJ11 connector.

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #13

                          mwith wrote:

                          But the problem is it has no serial interface. It has a cable with a RJ11 connector.

                          Which fact you did not mention in your first post. So what protocol does it use to communicate with its host? You have also not given any clue as to what software interface is available with this machine. For example what character sequence do you need to send to the cash drawer to make it open?

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups