SBM AppScript Reference → Additional SBM AppScript Features → Calling Functions in a DLL from SBM AppScript → Creating the SBM Library Object
SBM AppScript can load a DLL and call any function within the DLL as long as the function has the following interface:
int function_name( SBMScriptArg*, int, ReallocArg_t );
where the first argument is an array of SBMScriptArg objects, the second parameter is the number of objects in the array, and the third is a callback function pointer back into SBM to resize any of single SBMScriptArg in the array.
When building your libraries, you must include a header file with the following definition:
struct SBMScriptArg { char* pData; int size; }; typedef int (*ReallocArg_t)( SBMScriptArg* pArg, int newSize );
Copyright © 2007–2017 Serena Software, Inc. All rights reserved.