DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: catch ATL events in VB

  1. #1
    Assaf Guest

    catch ATL events in VB


    i'm trying to catch event in VB, that fired from VC++ using ATL connctionpoints.

    i did reference the com object, and i'm using it via it's interface.
    but i don't know how to catch the events that Fires from it.
    i know how to use WithEvents for catching events from VB class.
    but what about from DLL.

    i know it's a simple one, but i'm new to COM.
    Thank Assaf.






  2. #2
    Mark Alexander Bertenshaw Guest

    Re: catch ATL events in VB


    "Assaf" <assafgur@hotmail.co.il> wrote:
    >
    >i'm trying to catch event in VB, that fired from VC++ using ATL connctionpoints.
    >
    >i did reference the com object, and i'm using it via it's interface.
    >but i don't know how to catch the events that Fires from it.
    >i know how to use WithEvents for catching events from VB class.
    >but what about from DLL.
    >
    >i know it's a simple one, but i'm new to COM.
    >Thank Assaf.


    Assaf -

    Yes, it's the same. Simply declare the object variable at module scope,
    using WithEvents, and then source the events.

    --
    Mark Alexander Bertenshaw
    Programmer/Analyst
    Chordiant Software, Inc.
    Brentford
    UK

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center