Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. Sending Events from a DLL

Sending Events from a DLL

Scheduled Pinned Locked Moved COM
c++tutorialcom
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sid_smily
    wrote on last edited by
    #1

    Hi all, I dont know a lot about COM or DLLs but i am developing a DLL and want to get some thing done. I am developing a DLL in Visual C++, which i eventally want to use in VB.. :doh: I want the VB application to know of some events occuring in a DLL. For example progress of a function in DLL being sent back to the application for showing log or progress bar or anything like that. Can any one tell me how to do it.. any starting points, any clues would be great as well:-D Kind Regards Siddique Ahmed Senior Software Engineer Telelogix Software (www.telelogix.com)

    A 1 Reply Last reply
    0
    • S Sid_smily

      Hi all, I dont know a lot about COM or DLLs but i am developing a DLL and want to get some thing done. I am developing a DLL in Visual C++, which i eventally want to use in VB.. :doh: I want the VB application to know of some events occuring in a DLL. For example progress of a function in DLL being sent back to the application for showing log or progress bar or anything like that. Can any one tell me how to do it.. any starting points, any clues would be great as well:-D Kind Regards Siddique Ahmed Senior Software Engineer Telelogix Software (www.telelogix.com)

      A Offline
      A Offline
      Abhishek Srivastava
      wrote on last edited by
      #2

      Hi there, It is really very easy to implement events in your COM DLL. whenever u insert any ATL object in your ATL project, using ATL Object Wizard. ATL Object Wizard property box pop ups, go to attribute tab and select the check box "Support connection points" this will create an dispinterface which can contain ur event methods. now u have to simply add method in this interface. compile ur code . and then in class view select ur class which is going to implement this evennt interface, right click on it and add implement Connection point. a dialog box will pou up , select that event interface and click OK. Now just fire this event method from ur code. In ur VB client when just select ur Dll object . and it will list out all event methods implemented by ur dll Object. u can simply slect those event method and can code whatever u like. :) Abhishek Srivastava Software Engg (VC++) India ,Noida Mobile no 9891492921 :)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups