Platforms to show: All Mac Windows Linux Cross-Platform

Back to SoftDeclareMBS class.

SoftDeclareMBS.CallingMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin 7.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
What calling mode to use.

0 = Pascal (default)
1 = C

The Windows API works with Pascal, but calls to QuickTime DLL use C.
(Read and Write property)

SoftDeclareMBS.ConstantFound as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Was the constant loaded?

Set by the LoadConstant function.
(Read and Write property)

SoftDeclareMBS.ConstantName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The name of the constant to load.

Set by the LoadConstant function.
(Read and Write property)

SoftDeclareMBS.ConstantPointer as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The pointer of the constant loaded.

Set by the LoadConstant function.
(Read and Write property)

Some examples using this property:

SoftDeclareMBS.FunctionFound as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Was the function loaded?

Set by the LoadFunction function.
(Read only property)

SoftDeclareMBS.FunctionName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The name of the function to load.

Set by the LoadFunction function.
(Read and Write property)

SoftDeclareMBS.FunctionPointer as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The pointer of the function loaded.

Set by the LoadFunction function.
(Read and Write property)

Some examples using this property:

SoftDeclareMBS.Lasterror as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The last error code.

LoadLibraryFile, LoadLibrary, LoadFunction, LoadConstant and FreeLibrary set this property.
(Read and Write property)

SoftDeclareMBS.Liberror as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
An error message from loadlibrary.

Set by the LoadLibrary function.
(Read and Write property)

Some examples using this property:

SoftDeclareMBS.Libfound as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Was the library loaded?

Set by the LoadLibrary function.
(Read only property)

SoftDeclareMBS.Libhandle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The handle of the library loaded.

Set by the LoadLibrary function.
On Mac OS Classic a CFragConnectionID.
On Mac OS X a CFBundleRef.
On Windows a HINSTANCE.
(Read and Write property)

Some examples using this property:

SoftDeclareMBS.Libname as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The name of the library to load.

Set by the LoadLibrary function.
(Read and Write property)

Some examples using this property:

SoftDeclareMBS.Result as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The result of the call function.

Set by the Call function.
(Read and Write property)

SoftDeclareMBS.ResultDouble as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin 3.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The result of the call function CallFunctionDouble.

(Read and Write property)

SoftDeclareMBS.ResultInt64 as MemoryBlock

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Declare MBS Util Plugin 3.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The result of the call function CallFunctionInteger64.
Example
dim s as SoftDeclareMBS
dim m as MemoryBlock

s=new SoftDeclareMBS
if s.LoadDLL("test64bit.dll") then
if s.LoadFunction("Get64bitNumber") then
if s.CallFunctionInteger64(0,nil) then
MsgBox hex(s.ResultInt64.long(4))+hex(s.ResultInt64.long(0))
end if
end if
end if

' DLL was created with a function like this:
' IMPEXP long long Get64bitNumber()
' {
' return 0x1122334455667788;
' }

(Read and Write property)

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...