noho
February 16th, 2000, 06:26 AM
I define a interface.
Then reference the TLB and implement it in VB use statement "Implements".
But IView dose not show in class list.
Why?
Thanks for any suggestion.
[
object,
uuid(319E85A1-E279-11D3-9D78-00A0C9D4D5F3),
dual,
oleautomation,
helpstring("IView Interface"),
pointer_default(unique)
]
interface IView : IDispatch
{
[propget, id(1), helpstring("property ID")] HRESULT ID([out, retval] long *pVal);
[propput, id(1), helpstring("property ID")] HRESULT ID([in] long newVal);
[id(2), helpstring("method Create")] HRESULT Create([in]IFrame * parent);
[propget, id(3), helpstring("property hWnd")] HRESULT hWnd([out, retval] long *pVal);
[id(4), helpstring("method SetExtent")] HRESULT SetExtent([in]int left,[in]int top, [in]int width, [in]int height);
[id(5), helpstring("method Destroy")] HRESULT Destroy();
[id(6), helpstring("method Show")] HRESULT Show();
[id(7), helpstring("method Hide")] HRESULT Hide();
[id(8), helpstring("method GetMenu")] HRESULT GetMenu([out]long * hMenu);
[id(9), helpstring("method InvokeCommand")] HRESULT InvokeCommand([in]long ID);
[id(10), helpstring("method UpdateCommand")] HRESULT UpdateCommand([in]long ID,[in] ICommandUI * pCommandUI);
[id(11), helpstring("method GetToolbar")] HRESULT GetToolbar([out]VARIANT * text,[out]VARIANT * commandid,[out] long * bmpN,[out] long * bmpH,[out] long * bmpD);
[id(12), helpstring("method GetStartButton")] HRESULT GetStartButton([out]BSTR * text,[out] long * imgN,[out] long * himgH,[out] long * imgD);
};
Then reference the TLB and implement it in VB use statement "Implements".
But IView dose not show in class list.
Why?
Thanks for any suggestion.
[
object,
uuid(319E85A1-E279-11D3-9D78-00A0C9D4D5F3),
dual,
oleautomation,
helpstring("IView Interface"),
pointer_default(unique)
]
interface IView : IDispatch
{
[propget, id(1), helpstring("property ID")] HRESULT ID([out, retval] long *pVal);
[propput, id(1), helpstring("property ID")] HRESULT ID([in] long newVal);
[id(2), helpstring("method Create")] HRESULT Create([in]IFrame * parent);
[propget, id(3), helpstring("property hWnd")] HRESULT hWnd([out, retval] long *pVal);
[id(4), helpstring("method SetExtent")] HRESULT SetExtent([in]int left,[in]int top, [in]int width, [in]int height);
[id(5), helpstring("method Destroy")] HRESULT Destroy();
[id(6), helpstring("method Show")] HRESULT Show();
[id(7), helpstring("method Hide")] HRESULT Hide();
[id(8), helpstring("method GetMenu")] HRESULT GetMenu([out]long * hMenu);
[id(9), helpstring("method InvokeCommand")] HRESULT InvokeCommand([in]long ID);
[id(10), helpstring("method UpdateCommand")] HRESULT UpdateCommand([in]long ID,[in] ICommandUI * pCommandUI);
[id(11), helpstring("method GetToolbar")] HRESULT GetToolbar([out]VARIANT * text,[out]VARIANT * commandid,[out] long * bmpN,[out] long * bmpH,[out] long * bmpD);
[id(12), helpstring("method GetStartButton")] HRESULT GetStartButton([out]BSTR * text,[out] long * imgN,[out] long * himgH,[out] long * imgD);
};