M
Miguel.Herrera
I like to create an assembly with a property exposed in COM as
bindable. I have tried to use [Bindable(true)] attribute but when I
check the typelib produced by regasm for my assembly the property does
not have bindable on it.
Here is some code of what I mean:
[Bindable(true)]
public bool ActiveXDone
{
get
{
return _activeXDone;
}
set
{
_activeXDone = value;
}
}
when I use regasm to generate a typelib for my assembly I like to get
the following (note the bindable attribute):
[id(0x60020000), propget, bindable]
HRESULT ActiveXDone([out, retval] VARIANT_BOOL* pRetVal);
[id(0x60020000), propput, bindable]
HRESULT ActiveXDone([in] VARIANT_BOOL pRetVal);
but instead I get the following :
[id(0x60020000), propget]
HRESULT ActiveXDone([out, retval] VARIANT_BOOL* pRetVal);
[id(0x60020000), propput]
HRESULT ActiveXDone([in] VARIANT_BOOL pRetVal);
What am I doing wrong ?
bindable. I have tried to use [Bindable(true)] attribute but when I
check the typelib produced by regasm for my assembly the property does
not have bindable on it.
Here is some code of what I mean:
[Bindable(true)]
public bool ActiveXDone
{
get
{
return _activeXDone;
}
set
{
_activeXDone = value;
}
}
when I use regasm to generate a typelib for my assembly I like to get
the following (note the bindable attribute):
[id(0x60020000), propget, bindable]
HRESULT ActiveXDone([out, retval] VARIANT_BOOL* pRetVal);
[id(0x60020000), propput, bindable]
HRESULT ActiveXDone([in] VARIANT_BOOL pRetVal);
but instead I get the following :
[id(0x60020000), propget]
HRESULT ActiveXDone([out, retval] VARIANT_BOOL* pRetVal);
[id(0x60020000), propput]
HRESULT ActiveXDone([in] VARIANT_BOOL pRetVal);
What am I doing wrong ?