Free Code


All examples include a PB10.5 version and a PB12.6 version if there are Windows API functions. The PB12.6 versions are verified to work in 64bit. 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
Click here to download an installer for the old PB8 & PB10 samples: WebExamplesOld


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.2.11 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
FormatMessage
GetLastError
GetOpenFileName
ReadFile
RtlMoveMemory
SHGetFileInfo
WriteFile
Zlib API Functions used:
compress
compress2
crc32
gzclose
gzopen
   Zlib API Functions used:
gzread
gzwrite
uncompress
uncompress2
unzClose
unzCloseCurrentFile
unzGetCurrentFileInfo
unzGetGlobalComment
unzGoToFirstFile
unzGoToNextFile
unzLocateFile
unzOpen
unzOpenCurrentFile
unzOpenCurrentFilePassword
unzReadCurrentFile
zipClose
zipCloseFileInZip
zipOpen
zipOpenNewFileInZip
zipOpenNewFileInZip3
zipWriteInFileInZip
zlibVersion

——— Last updated 02/26/2020 ———

Amyuni  
BCrypt  
Bitmap  
Canvas  
ChooseFont  
Colors  
ControlPanel  
Cryptoapi  
DisplayIcon  
DWGridXP  
DynamicMenus  
EmailPOP3  
EmailSMTP  
Filesys  
FTPClient  
GetFileName  
GetFolder  
GetURL  
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