Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to call an activex with oops concept?

shiz0frenik
Participant
0 Kudos
233

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?
 

1 REPLY 1

shiz0frenik
Participant
0 Kudos
190

It's also itresting that handle changes to int value if to add 1 command after 'Create Object' statemet.
So handle initializes with int.

CREATE OBJECT EVatService 'EInvVatService.Connector'.
wait UP TO 1 SECONDS.

 Hanle is -1 if there no statements after 'Create Object'