I have a COM wrapper class in VC++, with methods and properties exposed to VB.

I want to check the HRESULT value passed back from my methods, so that I can execute in VB according to the status of the COM Methods.

VB does not compile when I try to use "SUCCEEDED" or FAILED - it comes back with "Sub or Function not defined" error.

How can I check the HRESULT status in VB?