I got following problem:
I'm loading a function of a C-DLL in my Lazarus project like
@dpstate_callCustomfunction:= GetProcAddress(mConnectorLibrary, 'dpstate_callCustomfunction');
this function got different implementations with different variables in the C-DLL, so I have to declare it more than 1 time in the Lazarus project. I tried it like:
var dpstate_callCustomfunction: function(plugin, method, paramName: string; customfunctionCallbackFunction: string; id: PChar): integer; stdcall; overload; override;
var dpstate_callCustomfunction: function(plugin, method, paramName: string; resultParam: PChar): integer; stdcall; reintroduce; overload;
But the compiler tells me following Errors: "Error: Procedure directive "OVERRIDE" not allowed in procvar declaration" "Error: Procedure directive "OVERLOAD" not allowed in procvar declaration"
What am I doing wrong? =/ If I remove the "var" it compiles, but I think I need the "var" or am I wrong?