Bug 8401

problem to call external function 23 May, 2022

Pofen Fang
20 May, 2022
Product: PowerBuilder Category: Other
Version: 2021 Build: 1313
Classification: Issue Publishing: Public
Priority: P3
Status: Closed Reason: RESOLVED
Ken Guo @Appeon 23 May, 2022
#8
Hi Pofen,

Thank you for your response! 
We will close this ticket first and please feel free to open a new one if you encounter any problems.

Regards,
Ken
Pofen Fang 23 May, 2022
#7
(In reply to Ken Guo @Appeon from comment #6)
Hi Pofen,

Glad to hear that. May I ask if we can close this ticket now?

Regards,
Ken
Yes! Thanks for your kindly help
Ken Guo @Appeon 23 May, 2022
#6
Hi Pofen,

Glad to hear that. May I ask if we can close this ticket now?

Regards,
Ken
Pofen Fang 20 May, 2022
#5
(In reply to Ken Guo @Appeon from comment #4)
Hi Pofen,

Please modify the External Functions declaration to add "Ansi", then try
again and see if the issue is solved.  

For example:
Function boolean GetComputerNameA(ref string  lpBuffer, ref ulong nSize)
library "kernel32.dll" alias for "GetComputerNameA;Ansi"


Regards,
Ken
The problem is fixed. Thanks!
Ken Guo @Appeon 20 May, 2022
#4
Hi Pofen,

Please modify the External Functions declaration to add "Ansi", then try again and see if the issue is solved.  

For example:
Function boolean GetComputerNameA(ref string  lpBuffer, ref ulong nSize) library "kernel32.dll" alias for "GetComputerNameA;Ansi"


Regards,
Ken
Pofen Fang 20 May, 2022
#3
螢幕快照 2022-05-20 下午2.56.11.png (314KB)

(In reply to Ken Guo @Appeon from comment #2)
Hi Pofen,

Please provide a small complete case for us.

In the meantime, please provide a screenshot to show us your computer name
and your computer language, such as English.

Does this issue happen on other machines too?


Regards,
Ken
Language:Traditional Chinese (Taiwan) The computer should be sybase1
Ken Guo @Appeon 20 May, 2022
#2
Hi Pofen,

Please provide a small complete case for us.

In the meantime, please provide a screenshot to show us your computer name and your computer language, such as English.

Does this issue happen on other machines too?


Regards,
Ken
Pofen Fang 20 May, 2022
#1
螢幕快照 2022-05-20 下午2.07.19.png (276KB)

*Phenomenon:
There is problem to call function boolean GetComputerNameA(ref string  lpBuffer, ref ulong nSize) library "kernel32.dll"

*Reproduce Steps:


Remarks:
OS:
Windows 10
Platform:
64-bit
Database Type:
SAP ASE
Database Version:
16