ISupportErorrInfo
-
Hello all, I have a strange problem relating to ISupportErrorInfo. I have a component implemented as a collection class. This class is created as an MTS component and I added the _NewEnum, Item and Count properties to it, so I can use it as a collection. This all goes well. But now I added the ISupportErrorInfo interface. When something doesn't go as I want I do [ccode] return Error( L"My Message", IID_IMyInterface, E_FAIL); [/ccode] so I can see the error in a VB client with the Err object. But strange thing is that this only works with late binding, not with early binding. So if I declare a variable with [ccode] Dim obj as OBject [/ccode] I can see the error with err.description, but when I declare it with [ccode] Dim Obj as MyInterface [/ccode] it doesn't work that way and the Err.description simply tells me that "method 'SomeMethod' of component 'MyInterface' fails"!!!!! Anybody has a clue what I could have done wrong? I use NT ws4 sp6 and VS6 sp3 TIA Henk