Results 1 to 3 of 3

Thread: Any ATL gurus out there?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091
    Hi,

    I'm learning ATL to develope COM components in C++. I got the hang of implementing Properties and Methods but am having a difficult time implenting Events (Connection Points).

    When using the Microsoft ATL Tutorial, I follow it verbatum but when I get to the part about implementing the event interface, it errors out:

    IID_IHelloWorldEvents' : undeclared identifier

    Any ideas?

    Thanks,

    Dan

    Visual Studio 2010

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    When you want to know the error in your code, it's usually a good idea to post the code that's giving the error, along with any error messages

    So, what's the code?
    Harry.

    "From one thing, know ten thousand things."

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091
    Sorry for taking so long to reply..

    Okay, the complete code is available from MSDN at:

    http://msdn.microsoft.com/library/de...tl_polygon.exe

    It contains all the source files need to compile the project.

    Also, if you prefer to do the tutorial step by step, the tutorial is at:

    http://msdn.microsoft.com/library/de...l_tutorial.htm

    Everything is fine until you get to step 5: Adding an event to the control.. this is when it fails to compile. Don't you think Microsoft would test their tutorial for bugs before releasing it? Well, I guess not since that's what they do with their other software :-)

    That is the part I'm really interested in because I want to know how to fire events from my COM component but even Microsoft's example seems to have a bug in it..

    Can any one figure out what is wrong with Step 5 and let me know? I'd really appreciate it..

    Dan

    Visual Studio 2010

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