Forum > General

Receive the function called to Variant

(1/2) > >>

Zaher:
If i declared v as variant
v: variant;

i can call a any function and it is compiled, how can i receive/implement this function

v.foo(i: integer);

molly:
Thou speaks in riddles, my dear.  :D

I take it you are talking about automation ?

If so: do you want to create your own automation server or just implement an automation client ?

In case of the first, i have no idea if that's already possible to do with lazarus/fpc and in case the latter then please have a look here.

marcov:
Make sure that v contains an IDispatch interface and implement the invoke method (https://msdn.microsoft.com/en-us/library/windows/desktop/ms221479%28v=vs.85%29.aspx)

Zaher:
@molly
Yes I want to "create your own automation server or just implement an automation client"
It is good adventure

@marcov Thank you, I can start with IDispatch, but it is seem not easy.

marcov:
Check mantis and search for bugs in activex/com etc. There is somewhere a bugreport with a lot of activex related tests. Maybe some idispatch is in there.

Otherwise searching for Delphi scripting language bridges might also help.

Navigation

[0] Message Index

[#] Next page

Go to full version