Progress so far:
- I've created a Farr plugin DLL.
- The DLL is loaded by FARR when FARR starts.
The Farr plugin error log shows:
09:31 AM, Wednesday, April 10, 2013
Error initializing plugin do_init function
C:\Program Files (x86)\FindAndRunRobot\Plugins\FarrPluginTest\FarrPluginTest.dll
The do_init() function exported by my DLL is not being called. I'm guessing the method signiture of my exported function is incorrect?
My do_init() function is declared using:
type
Fp_GetStrVal = function(JrPluginPointerp:Pointer; varname:PAnsiChar; destbuf:PAnsiChar; maxlen:integer):BOOL; cdecl;
Fp_SetStrVal = function(JrPluginPointerp:Pointer; varname:PAnsiChar; strbuf:PAnsiChar):BOOL; cdecl;
function PluginFunc_DoInit(
const fullfilename:PAnsiChar ;
inhostptr:Pointer;
const hostname:PAnsiChar;
const hostversionstring:PAnsiChar;
incallbackfp_GetStrVal:FP_GetStrVal;
incallbackfp_SetStrVal:FP_SetStrVal
): BOOL; cdecl;
Is there a way to have more detailed information added to the plugin error log?