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. ATL / WTL / STL
  4. How do I raise events.

How do I raise events.

Scheduled Pinned Locked Moved ATL / WTL / STL
c++questionjsontutorial
2 Posts 2 Posters 6 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.
  • A Offline
    A Offline
    acosmin
    wrote on last edited by
    #1

    I'm completely new to ATL:omg:. I use VB.:mad: I know C++ && API. I have next questions: 1.How do I define and raise an event from a class defined inside atl.:confused: 2.How do I raise errors to the clients that use my DLL.:confused: I'd appreciate if you give me some MSDN refferences or even articles inside CodeProject. - Any suggestions how to make subclassing for a window through the pass of hWnd parameter inside an ATL DLL? (I have some ideas that worked well under vb using API functions but I really appreciate the experience of the coders that visit this site, so I expect your opinion.) - I want to use ATL to build an DLL that takes as parameter the hWnd and subclass certain messages secified through an AttachMessage method. When the message is received I want to raise an event WndProc(...) into the caller.:confused: Thanx to all of you.:rose: I have a lot to learn from you. Cosmin Amza

    X 1 Reply Last reply
    0
    • A acosmin

      I'm completely new to ATL:omg:. I use VB.:mad: I know C++ && API. I have next questions: 1.How do I define and raise an event from a class defined inside atl.:confused: 2.How do I raise errors to the clients that use my DLL.:confused: I'd appreciate if you give me some MSDN refferences or even articles inside CodeProject. - Any suggestions how to make subclassing for a window through the pass of hWnd parameter inside an ATL DLL? (I have some ideas that worked well under vb using API functions but I really appreciate the experience of the coders that visit this site, so I expect your opinion.) - I want to use ATL to build an DLL that takes as parameter the hWnd and subclass certain messages secified through an AttachMessage method. When the message is received I want to raise an event WndProc(...) into the caller.:confused: Thanx to all of you.:rose: I have a lot to learn from you. Cosmin Amza

      X Offline
      X Offline
      xi904
      wrote on last edited by
      #2

      Answer Q1.http://msdn.microsoft.com/library/en-ccore/html/vcconATLEventHandling.asp Q2.AtlReportError() or CComCoClass::Error()

      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