G
Guest
The definition of a read/write property in an interface is similar to the following:
Public Interface EiDuty
Property Key() As String
End Interface
If I would like to generate a TLB out of the interface, how does the tool tlbexp knows what to export first? The get property or the set property goes first??
This is the tlb from the previous code:
[id(0x40030000), propput]
HRESULT Key([in] BSTR pRetVal);
[id(0x40030000), propget]
HRESULT Key([out, retval] BSTR* pRetVal);
In some other cases, I get the opposite:
[id(0x40030000), propget]
HRESULT Label([out, retval] BSTR* pRetVal);
[id(0x40030000), propput]
HRESULT Label([in] BSTR pRetVal);
Is there anything to force the order of get and set? Something similar to C# where in C# I explicitly specify the order like this:
string Key { get; set; }
or if i want to i could write it like this:
string Key { set; get; }
Any advice?
Public Interface EiDuty
Property Key() As String
End Interface
If I would like to generate a TLB out of the interface, how does the tool tlbexp knows what to export first? The get property or the set property goes first??
This is the tlb from the previous code:
[id(0x40030000), propput]
HRESULT Key([in] BSTR pRetVal);
[id(0x40030000), propget]
HRESULT Key([out, retval] BSTR* pRetVal);
In some other cases, I get the opposite:
[id(0x40030000), propget]
HRESULT Label([out, retval] BSTR* pRetVal);
[id(0x40030000), propput]
HRESULT Label([in] BSTR pRetVal);
Is there anything to force the order of get and set? Something similar to C# where in C# I explicitly specify the order like this:
string Key { get; set; }
or if i want to i could write it like this:
string Key { set; get; }
Any advice?