Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Troubles with COM in windows 2000

Status
Not open for further replies.

wolfykaos

Programmer
Mar 12, 2002
23
ES

Hi!

I make an application made in Visual Basic that prints tickets in a ticket printer on COM. This is what happens: When VB tries to open the port with "portopen" it always returns false, but if I delete the COM and create it again then the instruction portopen works (till I reinit the computer, of course). This doesn't happens in another OS: it works good in Win 95, 98, Me, and XP also!. Why does it occurs in Win 2000?. The trouble is not only because of printing, but also because I've to send escape codes to the printer to cut the tickets, and to open a cash drawer that It's usually attached to the printer.

I need urgent help, because I've got some interested clients, that have win2000, and of course I can´t say to them: "Oh, no problem, just delete the port and create it again everytime you turn on your computer, and then it will work!".

Thanks a lot

 
Win2k handles COM ports differently then other OS's (good old MS).

I would look at upgrading the Bios to a Win2k compatiable level. In the install info for Win2k it has big notes about the need to check/upgrade the Bios on some machine because of COM port issues.
New Zealand, a great place to live.
tokala@orcon.net.nz
 
Buffff!

I didn't know that. It's terrible because the type of clients I have don´t know anything about computers, and I'm afraid to say to them: "find a newer version of your BIOS and flash it!" or simply "tell what is your BIOS model"... Well, I think it would be better for them to change the OS.

Thanks a lot, I'm sure that New Zealand it's great but Spain isn't bad too :)
 
HI
I am not familiar with VB, but doesn’t VB have instruction to close a port as well as opening it?
If it has, what happens if you close the port before opening it?

Secondly: I know the type of clients you are taking about. Make sure you give (in a letter) you honest professional advice whatever the mood or knowledge of client.
If they change their OS, which involves costs and then someone comes along and tells them, they could have achieved the same thing by just upgrading their BIOS for free. Who do you think is really should have paid for the change of OS? In my opinion, not them!
Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top