How to open a cash drawer using VB6
-
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
-
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
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.
-
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
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.
-
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
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
-
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
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 :)
-
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 :)
-
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 :)
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.
-
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.
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"
-
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
Brand and model is always a helpful
Best regards, Jaime.
-
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 :)
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.
-
Brand and model is always a helpful
Best regards, Jaime.
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.
-
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.
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?