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?
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.
TInterfacedObject
IDispatch
Invoke()
IConnectionpointContainer
IConnectionPointContainer.FindConnectionPoint
IConnectionPoint.Advise()
COM,
Source: https://habr.com/ru/post/1763252/More articles:Symfony class autoload in Zend_Framework - dependency-injectionSQLite SELECT that returns identifiers and positions - sqlTwo identical lines, but different lengths. Cropped, peeled, etc. - phpon iOS, how can I shift the navigationItem.leftBarButtonItem horizontally to the right? - iosReturn IQueryable vs. ObjectQuery when using LINQ to Entities - linq-to-entitiesActiveMQ and client authentication with certificate authentication - securityConvert date format to timestamp mysql - dateread android dmesg with code - androidR: polynomial short notation in the formula nls () - rSQL Server 2008 - сохранение и поиск URL (веб-адрес) - urlAll Articles