calling openComm (WinAPI) fails
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: corel.wpoffice.paradox-dev, corel.wpoffice.paradox-opal
From:
Dieter Lohse <Dieter.Lo... @t-online.de>
Date: Tue, 23 Oct 2001 02:19:44 +0200
Local: Mon, Oct 22 2001 8:19 pm
Subject: calling openComm (WinAPI) fails
Hello,
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
You must
Sign in before you can post messages.
You do not have the permission required to post.
Newsgroups: corel.wpoffice.paradox-dev
From:
"Jure Zorko" <jure.zo... @b2-ic.si>
Date: Tue, 23 Oct 2001 07:58:26 +0200
Local: Tues, Oct 23 2001 1:58 am
Subject: Re: calling openComm (WinAPI) fails
Look at thread "textStreaming to printers attached to COM ports" in this
group.
There I put a library with dll to manage com ports.
Jure
"Dieter Lohse" <Dieter.Lo
... @t-online.de> wrote in message
news:3BD4B7A0.AD9F8DBE@t-online.de ...
> Hello,
> 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
You must
Sign in before you can post messages.
You do not have the permission required to post.
Newsgroups: corel.wpoffice.paradox-dev
From:
Dieter Lohse <Dieter.Lo... @t-online.de>
Date: Tue, 23 Oct 2001 13:06:15 +0200
Local: Tues, Oct 23 2001 7:06 am
Subject: Re: calling openComm (WinAPI) fails
Dear Jure!
Sorry, but I cannot find your posting in that thread.
Dieter
Jure Zorko schrieb:
> Look at thread "textStreaming to printers attached to COM ports" in this
> group.
> There I put a library with dll to manage com ports.
> Jure
> "Dieter Lohse" <Dieter.Lo... @t-online.de> wrote in message > news:3BD4B7A0.AD9F8DBE@t-online.de ... > > Hello,
> > 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
You must
Sign in before you can post messages.
You do not have the permission required to post.
Newsgroups: corel.wpoffice.paradox-dev
From:
Liz <l... @paradoxcommunity.com>
Date: Tue, 23 Oct 2001 08:24:29 -0600
Local: Tues, Oct 23 2001 10:24 am
Subject: Re: calling openComm (WinAPI) fails
Subject: Re: textStreaming to printers attached to COM ports
Date: Tue, 16 Oct 2001 15:14:55 +0200
From: "Jure Zorko" <jure.zo
... @b2-ic.si>
Newsgroups: corel.wpoffice.paradox-dev
Liz
Dieter Lohse wrote:
> Dear Jure!
> Sorry, but I cannot find your posting in that thread.
> Dieter
You must
Sign in before you can post messages.
You do not have the permission required to post.
Newsgroups: corel.wpoffice.paradox-dev
From:
Dieter Lohse <Dieter.Lo... @t-online.de>
Date: Sun, 28 Oct 2001 00:39:28 +0200
Local: Sat, Oct 27 2001 6:39 pm
Subject: Re: calling openComm (WinAPI) fails
Thanks for the library, but unfortunately it doesn’t work with my
Paradox7-16. I have to use the 16bit-API
(User.exe). Perhaps someone else knows the bug. Other DLL-calls are working
right, only calling OpenComm fails. After calling OpenComm the value and
size of the variable comstr ("COM1") has changed and the function returns no
value. The error occurs on all my machines from WfW 3.11 over Win95b to
WinME, so it seems to be a Pdox problem. Calling OpenComm by Delphi code is
working correct. Meanwhile I've spend some nights with this problem and I
would be glad if somebody knows a solution.
Dieter
Jure Zorko wrote:
> Look at thread "textStreaming to printers attached to COM ports" in this
> group.
> There I put a library with dll to manage com ports.
> Jure
> "Dieter Lohse" <Dieter.Lo... @t-online.de> wrote in message > news:3BD4B7A0.AD9F8DBE@t-online.de ... > > Hello,
> > 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
You must
Sign in before you can post messages.
You do not have the permission required to post.
Newsgroups: corel.wpoffice.paradox-dev, corel.wpoffice.paradox-opal
From:
"Manuele Grueff" <gru... @libero.it>
Date: Sat, 5 Jan 2002 19:22:12 +0100
Local: Sat, Jan 5 2002 1:22 pm
Subject: Re: calling openComm (WinAPI) fails
Try changing the uses block (substitute USER with user, CLONG with CWORD):
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
You must
Sign in before you can post messages.
You do not have the permission required to post.