how to send windows messages to delphi ocx or dll
any suggestion please
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dharmesh SharmaRank #1,974 · 741 reputationPosted Jan 18, 2011, 2:47 AM EST
Hey I had gotten returning a pchar via a function in a DLL working. I'm having problems expanding on that - I need to return mutiple values and I can't seem to get the declaration down that will let me do that.
For instance, a DLL in D2006:
function foo( P1: pchar; P2: pchar; P3: pchar ): pchar; export; cdecl;
begin
P1 := 'blah blah';
Result := 'Blah2';
end
In C#:
[DllImport("fooshell.dll")]
public static extern string foo( string P1, string P2, string P3 );
Calling this function will properly return 'Blah2' as the result but does not change P1. What's the trick to pass like a 'var'?