Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Declare | MBS Util Plugin | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Deprecated. Please move to newer DeclareLibraryMBS and DeclareFunctionMBS classes.
You can make a declare like this:
Declare Function SpeakString lib "SpeechLib" (SpeakString as pstring) as Integer
But what if the SpeechLib is not installed?
Simple, but your application won't even launch on this machine.
Now you can of course use this MBS Plugin using the SpeechMBS functions, which are all week linked.
But you can also use this class to weak link to the SpeechMBS library like this:
dim b as boolean, m,p as memoryblock, c as SoftDeclareMBS
c=new SoftDeclareMBS
p=newmemoryBlock(256) // make the string for the first parameter
p.pstring(0)="Hello World!"
m=newmemoryBlock(4) // make the memoryblock for the parameters
m.long(0)=p.Address(0) // set the first parameter to the address of the string buffer
if c.loadlibrary("SpeechLib") then // Load librarys
if c.loadfunction("SpeakString") then // Load function
b=c.Call(1,m)
end if
end if
This way your application will be loaded, you can call the function, but people who don't have the SpeechLib will also here it.
This class has no sub classes.
The items on this page are in the following plugins: MBS Util Plugin.