home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 August
/
Chip_1999-08_cd.bin
/
sharewar
/
wscmclib
/
PBUILDER.TXT
< prev
next >
Wrap
Text File
|
1999-06-01
|
1KB
|
37 lines
*** Calling WSC from Power Builder ***
We do not use the Power Builder compilers, although we have several
customers that do. The two Power Builder declaration files are:
WSC16.PBI -- Use with Power Builder 5 and earlier (Win16).
WSC32.PBI -- Use with Power Builder 6 and later (Win32).
To use WSC in Power Builder:
1. Install the WSC library in the Power Builder path. Note that for
Power Builder Version 5, this means WSC16.DLL.
2. Declare the functions in the Power builder's Declare global
external function menu:
Function integer SioDone(integer Port) library "Wsc16.dll";
Function char SioGetc(integer Port) library "Wsc16.dll";
...
These functions are defined in the file WSC.PBI.
3. In order to call the functions inside Power Builder, follow this example:
Integer Result, COM1
COM1 = 0
Result = SioGetc(COM1)
If Result < 0 then
SioDone(COM1)
...
return
end if
...