'' mylib2.bas '' compile with: fbc -dll mylib.bas -g -R '' sub two numbers together and return the result Public Function sub2( Byref x As Integer, Byref y As Integer ) As Integer Export Return( x - y ) End Function