I want to open a serial port by ObjectPal code.
Code in Uses-block:
Uses USER
OpenComm(comstr CPTR, InQueue CLONG, OutQueue CLONG) CWORD
endUses
Code in pushButton-method:
method pushButton(var eventInfo Event)
ComId = openComm(comstr,inqueue,outqueue)
endmethod
After calling the opencomm-function the variable comstr ("COM1") is
destroyed an the port will not open.
Calling other WinAPI-functions with string parameters works properly.
I´m using Paradox7(16bit) on Win95b.
Can anybody help me?
Dieter Lohse
There I put a library with dll to manage com ports.
Jure
"Dieter Lohse" <Dieter...@t-online.de> wrote in message
news:3BD4B7A0...@t-online.de...
Sorry, but I cannot find your posting in that thread.
Dieter
Jure Zorko schrieb:
Liz
Dieter
Uses user
OpenComm(lpComName CPTR,wInQueue CWORD,wOutQueue CWORD) CWORD
enduser
By the way, do you correctly initialize wInQueue and wOutQueue to a
reasonable value?
Remember that before you can correctly use the port you should also use
BuildCommDCB and SetCommDCB to stup the port as you wish.
(I was the creator of the library Jure Zorko posted! It's nice to see that
it is still useful to somebody!)
By the way, if you want it, i have, somewhere in my old backups, a 16bits
version of Comm32.lsl...
--
Manuele Grueff
IT Consulting, Database & Web design
http://www.nannifa.it/atipica
sho...@paradoxcommunity.com