Delphi CreateOleObject Events

There is a code:

var 
myobject: OleVariant;
begin
 myobject := CreateOleObject('SomeNamespace.SomeClass');
end;

This COM object has events (for example, OnClick). How to connect to these events without importing TLB?

+3
source share
1 answer

You work with late COM bindings, so you need to write a lot of code to handle events. this task is not difficult if you know COM, basically you need to follow these steps.

COM,

+6

Source: https://habr.com/ru/post/1763252/


All Articles