How to call an activex with oops concept?

Hi, expert.
I have an activex component and want to use it with oops concept
It works with simple calling it throught ole2_object and i don’t undestand why it works, cause after statement
create object –  handle is 1-, and it’s changed after i call method of it.

DATA EVatService TYPE OLE2_OBJECT,
ver type string.
CREATE OBJECT EVatService ‘EInvVatService.Connector’.
CALL METHOD of EvatService ‘Version’ = ver.
write : ver.

Is it should work like that or i’m doing smth wrong.
And i want to know can it throught some standart classes, using oops concept?
 

Scroll to Top