For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > February 2005 > Use RS-232 with PB 9.0 Pro









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Use RS-232 with PB 9.0 Pro
Paolo

2005-02-24, 8:59 am

Good Day all NG.

I have a problem that I don't succeed to resolve. How I can use RS-232 with
PB 9.0 professional?
I don't find functions or libraries for the access to the port.

Many thanks, bye bye


Jim Douglas

2005-02-24, 8:59 am

If PB does not have it I'm sure there are tons of objects that will support
the RS-232 requirement that PB can access. Years ago I need to write some
code with lat/long and distance and found a vb object that was perfect.

"Paolo" <a@a.it> wrote in message
news:_riTd.784$tY2.342@news.edisontel.com...
> Good Day all NG.
>
> I have a problem that I don't succeed to resolve. How I can use RS-232

with
> PB 9.0 professional?
> I don't find functions or libraries for the access to the port.
>
> Many thanks, bye bye
>
>



Frank A

2005-02-24, 4:01 pm

Paolo wrote:
> Good Day all NG.
>
> I have a problem that I don't succeed to resolve. How I can use RS-232 with
> PB 9.0 professional?
> I don't find functions or libraries for the access to the port.
>
> Many thanks, bye bye
>
>

You might want to look at declaring and using the external functions
CreateFile/ReadFile/etc. from the win32 API:

The CreateFile function creates or opens the following objects and
returns a handle that can be used to access the object: · files · pipes
· mailslots · *COMMUNICATIONS RESOURCES* · disk devices (Windows NT
only) · consoles · directories (open only)
....

Look at the API List on http://www.mentalis.org/apilist/CreateFile.shtml

good luck.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com