Our PowerBasic examples on this site were originally written for earlier versions of PowerBasic, specifically the PowerBasic DLL Compilier. PowerBasic has now integrated DLLs into their PowerBasic for Windows 7 compiler, and does not sell the PB/DLL compiler any longer. All that is needed to compile our examples successsfully with the new PBWIN 7.02 compiler is to add the following statement as the first line:
#COMPILE DLL