DLL Libraries: Difference between revisions
Jump to navigation
Jump to search
Note: QB64 requires all DLL files to either be with the program or in the C:\WINDOWS\SYSTEM32 folder!
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "QB64 supports some DLL Library statements and functions. Currently the specified DLL file MUST either be in the '''Windows System folder''' (System32) or in the '''QB64 folder!''' NOTE: '''Use them at your own risk! QB64 CANNOT provide specific DLL Library information or support!''' When using unsupported DLL files use DECLARE DYNAMIC LIBRARY and the name of an '''inactive''' library '''without''' the .DLL extension. The following statement and functi...") |
m (Protected "DLL Libraries" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
(No difference)
|
Revision as of 22:25, 27 April 2022
QB64 supports some DLL Library statements and functions. Currently the specified DLL file MUST either be in the Windows System folder (System32) or in the QB64 folder! NOTE: Use them at your own risk! QB64 CANNOT provide specific DLL Library information or support! When using unsupported DLL files use DECLARE DYNAMIC LIBRARY and the name of an inactive library without the .DLL extension. The following statement and function routine examples have been provided by members AS IS:
Examples
Example 1: This example plays Midi files using the playmidi32.dll documented here: Liberty Basic University. Download the following DLL file to your main QB64 folder: PlayMidi32.dll
DECLARE DYNAMIC LIBRARY "playmidi32" FUNCTION PlayMIDI& (filename AS STRING) END DECLARE result = PlayMIDI(".\samples\qb64\original\ps2battl.mid" + CHR$(0)) PRINT result |
- Note: Filename needs to be CHR$(0) terminated. QB64 STRINGs are passed to external libraries as pointers to first character.
See also:
- DECLARE DYNAMIC LIBRARY, BYVAL
- _OFFSET, _OFFSET (function) (lp, ptr and p names)
- C Libraries, SDL Libraries, Windows Libraries
- C++ Variable Types
- Port Access Libraries (COM or LPT)