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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 Programs, Same Time, Use Com Ports, Win98SE

Status
Not open for further replies.

rjcoats

Programmer
Aug 26, 2002
13
0
0
US
I have an area, where there are two programs that can be run by the same person in our Factories.
We are in manufacturing of shoes, one program prints out Bar code shoe box labels with a Datamax Prodigy Plus.
The other puts a Case Label on the box when they pack it out of production to ship to warehouse.

One uses two printers, the other only one. So I need it to share the ports.

Im using Clipper 5.2e for Dos. I'd like to run both programs in Windows 98 SE in two different windows. Where they can just alt tab over to the next.

What code do I need to use to free those ports.
I use FOPEN and FCLOSE to write to these ports in binary mode. In one area, where I use a Tricoder, I use SilverClip Lib for my com port open and close.

Any suggestions?

Thanks
Rj

Rj Coats
Computer Programmer/Technician
Hot Springs, AR.
 
I may have solved this problem.
Looking back at a post from march 5, 2003 COM PORT subject.
Different scenerio, same effect.

I went into system.ini, 386ENH section, and added
COM1AUTOASSIGN=2
COM2AUTOASSIGN=2

Then Regedit;
HKLM-
SYSTEM
CURRENT CONTROL SET
SERVICES
VXD
VCOMM
and changed settin from 01 00 00 00 to 00 00 00 00

(actually, my Vcomm setting was already like that... the Autoassign in step one fixed it.)

Thank you hemantpandya for posting the questin 3/5/03,
and thanks Pontelo for the answer.

Rj


Rj Coats
Computer Programmer/Technician
Hot Springs, AR.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top