How to fix COM1 error in PG2000

Closed, because a duplicate thread exists. How to migrate pg2000 program