Problem with IFeature::GetTypeName2 using C++

The GetTypeName2  method of the IFeature interface does not seem to be working for me when using C++.  The VBA call works OK.

I'm getting a HRESULT returned which is  0x800706d1 (The procedure number is out of range).  Can anyone else using C++ confirm that this is broken?

Jim S.

SolidworksApi macros