Welcome to Pauls PureProject
 Home Online Reference Guide duplicated from http://cvs.purebasic.com  
 Online Resources
   · Reference

 Libraries
     2DDrawing
     Billboard
     Camera
     CDAudio
     Cipher
     Clipboard
     Console
     Database
     Date
     Desktop
     Engine3D
     Entity
     File
     FileSystem
     Font
     Gadget
     Help
     Image
     ImagePlugin
     Joystick
     Keyboard
     Library
     Light
     LinkedList
     Material
     Math
     Memory
     Menu
     Mesh
     Misc
     Module
     Mouse
     Movie
     Network
     OnError
     Packer
     Palette
     Particle
     Preference
     Printer
     Requester
     Sort
     Sound
     SoundPlugin
     Sprite
     Sprite3D
     StatusBar
     String
     SysTray
     Terrain
     Texture
     Thread
     Toolbar
     Window

 Library

Overview

Libraries are shared OS components which contain specific functions available to the programmer. For example, a library can contain commands to handle and manipulate pictures easily. Each OS provides a number of shared libraries to ease the programmers life. With PureBasic, it's possible to use these external libraries easily and dynamically!

The reason that libraries are so useful is because they are separate from the applications but are shared between them. A library file will only need to be loaded into memory once, therefore saving memory, especially if it is a commonly used library. They also benefit the programmer as it means you do not need to keep re-inventing the wheel every time you want to use a clever feature in your program.

Libraries are also good to keep procedures that are used by several programs and can be easly updated without the need to change your main executable.

Under the Windows OS, shared libraries are well known as 'DLL's, or Dynamic Link Libraries.

Command Index

CallCFunction
CallCFunctionFast
CallFunction
CallFunctionFast
CloseLibrary
CountLibraryFunctions
ExamineLibraryFunctions
IsFunction
IsFunctionEntry
IsLibrary
LibraryFunctionAddress
LibraryFunctionName
LibraryID
NextLibraryFunction
OpenLibrary

Example

Library.pb

Supported OS

Windows, AmigaOS, Linux

Reference Manual - Index



Hosted by Reel Media Productions Copyright©2001-2004 All Rights Reserved