ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

Delphi FARR Plugin SDK updates? or working example?

(1/3) > >>

GameCat:
Does anyone have a working example of a FARR plugin for Delphi?

There is a Delphi FARR Plugin example in the SDK but it doesn't work when compiled with Delphi XE2. The example is a few years old and might have been written before Delphi added unicode support.

mouser:
Can you try to update it GameCat?

GameCat:
I can but I don't know c++ so I will need some help/guidance.

GameCat:
Is there a guide to developering Farr plugins somewhere?



GameCat:
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

--- End quote ---

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;



--- End quote ---


Is there a way to have more detailed information added to the plugin error log?



Navigation

[0] Message Index

[#] Next page

Go to full version