How to pass a TStringList back by reference
Posted on 2009-02-21
How do I pass back an object, in this case a TStringList in my own function by reference. I now have:
TStringList *aSTDOUT = new TStringList();
TStringList *aSTDERR = new TStringList();
fExecuteFile("Somefilename", *aSTDOUT, *aSTDERR);
With fExecuteFile being declared with:
bool fExecuteFile2 (AnsiString sCodeFileName, TStringList& aSTDOUT, TStringList& aSTDERR);
But then, inside the function, when i do
I'm getting "[Pointer to structure required on left side of -> or ->*" messages.
What am i doing wrong?