宣言の一部として、sub か function を見つけることができる ライブラリ を指定します。
構文:
記述:
例:
'' mydll.bas
'' 以下でコンパイルしてください:
'' fbc -dll mydll.bas
Public Function GetValue() As Integer Export
Function = &h1234
End Function
Declare Function GetValue Lib "mydll" () As Integer
Print "GetValue = &h"; Hex(GetValue())
Sleep
' 予想される出力 :
' GetValue = &h1234
QBからの違い:
参照: