CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    Norway
    Posts
    19

    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

  2. #2
    Join Date
    May 1999
    Location
    Seattle, WA USA
    Posts
    423

    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
  •  





Click Here to Expand Forum to Full Width

Featured