|
-
August 7th, 2009, 11:57 PM
#2
Re: Problem with adding custom event to a COM (ActiveX) Control
Hi Piyush,
You have to do the following changes to the CoClass,
Derive from
public IProvideClassInfo2Impl<&CLSID_MyCalss,& __uuidof(_IMyEvents),&LIBID_MYCOMP_Lib>
then add the following macros to the
BEGIN_COM_MAP(CAsyncEventConsumer)
//Add this two macros in to this map
COM_INTERFACE_ENTRY(IProvideClassInfo)
COM_INTERFACE_ENTRY(IProvideClassInfo2)
END_COM_MAP()
Then try, it should work.
Regards
Pradish
Tags for this Thread
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
|