ATL: fireing events from a Instanced object

This is a discussion on ATL: fireing events from a Instanced object within the C++ Programming forums, part of the General Programming Boards category; I am developing an ATL object and I'm only able to fire events under the com interface (in the coclass). ...

  1. #1
    CHECCO
    Guest

    Question ATL: fireing events from a Instanced object

    I am developing an ATL object and I'm only able to fire
    events under the com interface (in the coclass).
    Because the coclass is generalized from the Events interface (OK)
    How can i send Events from the class that I instance in the coclass ??
    I though to send to the class I'm using the "this" pointer of the coclass
    but I don't want to include the coclass header in my class.
    I think I must instance the Com Event class that has been
    created when I have made my connection point to the coclass,
    BUT HOW??

  2. #2
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    Through either containment or else inheritance. Your ATL class probably has to contain the right objects or else inherit the proper implementations and interfaces (that you override: that's what ATL is, dealing with implementation in such a way that you don't learn too much) from COM. At any rate this is a question for the system interface board (Win32/DOS/OSX/etc). It's a platform specific question.
    Last edited by Troll_King; 09-03-2002 at 06:32 AM.

  3. #3
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    TK, you're not a mod

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. circular doubly linked list help
    By gunnerz in forum C++ Programming
    Replies: 5
    Last Post: 04-28-2007, 09:38 PM
  2. Call ibrowser object from an ATL dll
    By lek in forum C++ Programming
    Replies: 1
    Last Post: 11-17-2005, 04:48 PM
  3. Question on l-values.
    By Hulag in forum C++ Programming
    Replies: 6
    Last Post: 10-13-2005, 05:33 PM
  4. A question about constructors...
    By Wolve in forum C++ Programming
    Replies: 9
    Last Post: 05-04-2005, 05:24 PM
  5. ATL Control Full Object Model
    By 7thSeeker in forum C++ Programming
    Replies: 6
    Last Post: 05-07-2004, 01:13 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21