Link to home
Start Free TrialLog in
Avatar of saperstein
saperstein

asked on

calling an method in an activeX from itself

i have an activeX control made with ATL. to make a long story short, their is a class inside it that i want to call a method in the control. i only want one instance of the control. is there any easy way to do this?
ASKER CERTIFIED SOLUTION
Avatar of igroove
igroove

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of saperstein
saperstein

ASKER

i made the class a member of the interface class. i have a method in the interface class to do some initialization and i pass in the this pointer. seems to work. the other way i was going to it was to pass in the LPDISPATCH.

the other problem/observation is that i added a destructor to the interface class. it didn't get called. am i missing something?

you can still have the points. thanks.