Click to See Complete Forum and Search --> : Any ATL gurus out there?
softwareguy74
Jan 11th, 2001, 04:40 PM
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
HarryW
Jan 11th, 2001, 05:26 PM
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 :rolleyes:
So, what's the code?
softwareguy74
Jan 13th, 2001, 11:21 AM
Sorry for taking so long to reply..
Okay, the complete code is available from MSDN at:
http://msdn.microsoft.com/library/devprods/vs6/visualc/vcsample/atl_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/default.asp?URL=/library/devprods/vs6/visualc/vcmfc/_atl_atl_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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.