Using 3rd part Addons (Dlls) in Brilliant Database
In Brilliant Database, you can connect and use functions from third party dynamic libraries (dll) if they were arranged in the appropriate way. To do so, you should create a script and add to it the "Execute External Dll Proc" action with the following parameters:
The result of the external function execution can be saved into a variable.
Creating 3rd Party Addons (Dlls) for Brilliant Database
To create additional modules for Brilliant Database, you can use any development tool, for example, Visual C++, Visual Basic, Delphi, etc. The created module should be a usual dll. All exported functions should be declared in the following way:
void __stdcall ProcedureName(char *ParameterA, char *ParameterB, char *ReturnValue)
For example, the following simple function will display ParameterA and ParameterB in a simple message and return a string with a random number:
If you call it from Brilliant Database with the following script:
we will see two sequential messages, the first one displayed from the dll, and the other one displayed by the script from Brilliant Database.
Note. When creating a dll, keep in mind that the dll in Brilliant Database is connected at the first call of any function from the given dll (LoadLibrary); when the database is closed, the dll is disconnected (FreeLibrary).
Copyright (C) 2001-2010 Binary Brilliant Inc. All Rights Reserved.