- Tracy Lamb
- PowerBuilder
- Wednesday, 7 June 2023 03:18 PM UTC
Hi all,
I have a custom user object I designed 20+ years ago to communicate with a serial port, uo_comport. The object has several local external functions defined. All of the functions are from the Windows user.exe library. Here's an example of one of the function declarations:
FUNCTION int OpenComm(string IpcomName,int wInQue, int wOutQue) LIBRARY "user.exe" alias for "OpenComm;Ansi"
I'm trying to just import the object from PB2019 into my PB2021 app. It regenerates fine, and I can open it and look at the code. But keep getting the following error when I'm running the application from the IDE:
uf_open, Line 14 is:
ii_ComID = OpenComm(as_com_port,ai_InBuffer_Size,ai_OutBuffer_Size)
I'm wondering if I should be using a different library? Maybe "user32.dll" ? I really don't want to re-write all the code if I can avoid it.
I'm using PB2021, Build 1509 and Windows 10.
TIA,
~~~Tracy
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.