|
-
May 3rd, 1999, 09:55 AM
#1
Returning objects from interfaces
Hello!
I am implementing an ActiveX control that does a lot of work with some objects.
Those objects(or their classes)%2
-
May 3rd, 1999, 03:11 PM
#2
Re: Returning objects from interfaces
you can just create a new class (with the class wizard) derived from CCmdTarget, that implements your interface, and then add a function with the class wizard (in your control's main class) that returns an LPDispatch, and have it return YourNewClass.GetIDispatch (TRUE). You can change the IDL or ODL to show the real interface you are returning (instead of just saying LDispatch).
--michael
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|