DLL plugin question
Posted on 2003-12-11
I'm developing DLL plugin system. Main application is written in Delphi. I'm having problem when I need to direct some variable to DLL, that will modify the variable content. Raw example:
main application runs ProcessPlugin procedure that will update some text variable, let's call it AData.
var AData: string;
AData := 'OldData'; // AData may contain some old data
procedure ProcessPlugin(var AData: string);
AData := 'New Data';
What is the better way to make this? I think there should be some tricks with pointers and memory allocations?