With the help of message posted by Brian Wright on the support web site of Sybase, I finally can port the serial interface in C into all powerbuilder. This custom object for serial communication only need "kernel.dll" which should be available in all windows' system. An example acted as a small terminal is also given. I test it on PowerBuilder 6.5.1. It should work on PowerBuilder 7.0 too.