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

HELP: COM1

Status
Not open for further replies.

mfcobol2002

Programmer
Feb 3, 2003
73
BR
Respected Gentlemen,

a mistake(173) exists in this program and me I didn't get to repair.
he is in 200-get-handle

respectfully
--------------
$set Ans85 Mf DefaultByte"00"
id division.
program-id. readcom.
special-names.
call-convention 74 is staticWINAPI.
working-storage section.

78 PROGRAM-NAME value "READCOM".

.
.
.

200-get-handle.

call staticWINAPI "CreateFileA"
using by reference z"\\.\COM1"
by value GENERIC-READ-WRITE size 4
by value 0 size 4
by value 0 size 4
by value OPEN-EXISTING size 4
by value 0 size 4
by value 0 size 4
returning com-port-handle
end-call

.
.
.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top