Free Code


All examples include a PB10.5 version and most have a PB12.6 version. The PB12.6 versions are verified to work in 64bit. PowerServer doesn't support the longptr type so you must use the PB10.5 version in that environment. If one of the examples doesn't work correctly, please contact me first before posting to the Appeon user forum or bug tracking system.

Before downloading one of the free code examples, please review the license terms here. If you find this code really useful and would like to donate, click the PayPal button in the upper right corner.

Click here to download an installer for all the free code samples: WebExamples


Adapter  

ZLibwapi

This program contains an object which encapsulates functions of the free ZLIB library. It includes in-memory compression / decompression, creating .zip archive files and extracting files from .zip archive files. It also supports password protected zip files.

Click here to download the PowerBuilder sample: ZLIBWAPI.ZIP

Version 1.3.1 (January 22, 2024) of the freecode library zlibwapi.dll is included. The 64bit version of the library is included as well.

Win API Functions used:
CloseHandle
CreateFile
FileTimeToLocalFileTime
FileTimeToSystemTime
FindClose
FindFirstFile
FindMimeFromData
FindNextFile
ReadFile
SHGetFileInfo
WriteFile
  ZLib Functions used:
compress
compress2
crc32
gzclose
gzopen
gzread
gzwrite
uncompress
unzClose
unzCloseCurrentFile
unzGetCurrentFileInfo
unzGetGlobalComment
unzGoToFirstFile
  ZLib Functions used:
unzGoToNextFile
unzLocateFile
unzOpen
unzOpenCurrentFile
unzOpenCurrentFilePassword
unzReadCurrentFile
zipClose
zipCloseFileInZip
zipOpen
zipOpenNewFileInZip
zipOpenNewFileInZip3
zipWriteInFileInZip
zlibVersion

——— Last updated 03/28/2024 ———

Amyuni  
BCrypt  
Bitmap  
Canvas  
ChooseFont  
Colors  
ControlPanel  
Cryptoapi  
DisplayIcon  
DragFiles  
DWGridXP  
DynamicMenus  
Filesys  
FTPClient  
GetFileName  
GetFolder  
GetURL  
Ghostscript  
Icontray  
ImageList  
Indirect  
LDAPQuery  
LineCount  
MessageBox  
Mutex  
ODBC API  
OSVersion  
Outlook  
ParentWindow  
PBDebug  
PBEditor  
Ping  
PrinterInstall  
PSRViewer  
ResizeResponse  
RunAndWait  
Send SMS  
SizeOf  
Splitbars  
Statbar  
String Class  
USPS Barcode  
WebBrowser  
WinHTTP  
Winsock  
XmlHttp  
ZLibwapi