|
-
Jan 11th, 2001, 05:40 PM
#1
Thread Starter
Frenzied Member
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
-
Jan 11th, 2001, 06:26 PM
#2
Frenzied Member
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."
-
Jan 13th, 2001, 12:21 PM
#3
Thread Starter
Frenzied Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|