Click to See Complete Forum and Search --> : HRESULT in VB


August 18th, 1999, 07:24 AM
Hello !
I have got a COM object in VC++.
A method of the interface of this object returns a STDMETHODIMP which is neither S_OK nor DISP_E_EXCEPTION.
I have got a VB client that calls this method.
When DISP_E_EXCEPTION, an error occurs in my client. Good !
When S_OK, no problem. Good !
But when something else than S_OK, or DISP_E_EXCEPTION, it works like when i receive S_OK !! But it's not what i want !

So, how can i catch in VB the value returned by an interface method ?

<KfR>