ActiveX property - Visible in object viewer?!
-
Hi guys! How can add a property of type
IAnyComInterace*
to my ActiveX component, so that it will be visible in the object viewer of Visual Basic or Visual C#? I have a ActiveX componentIMyFirstActiveX
and a second ActiveX componentIMySecondActiveX
. I added a propertyNextLogTarget
of typeIMyFirstActiveX
to myIMySecondActiveX
component. When I try to assign the one ActiveX component to the property of the other ActiveX component in the source code, like (VB sample)secondActiveX.NextLogTarget = firstActiveX
it works fine, but when I try to assign it in the object viewer of Visual Basic it will not exepted! I have tried severl methods of the property, here are the IDL's:
[propget, id(1), helpstring("property NextLogTarget")]
HRESULT NextLogTarget([out, retval] IUnknown* *pVal);
[propput, id(1), helpstring("property NextLogTarget")]
HRESULT NextLogTarget([in] IUnknown* newVal);[propget, id(1), helpstring("property NextLogTarget")]
HRESULT NextLogTarget([out, retval] IDispatch* *pVal);
[propput, id(1), helpstring("property NextLogTarget")]
HRESULT NextLogTarget([in] IDispatch* newVal);[propget, id(1), helpstring("property NextLogTarget")]
HRESULT NextLogTarget([out, retval] VARIANT *pVal);
[propput, id(1), helpstring("property NextLogTarget")]
HRESULT NextLogTarget([in] VARIANT newVal);How can I create a property of type of a COM interface, so that it work in the object viewer of Visual Basic or Visual C#??? Cheers, Daniel. -- FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE. ;)