> This is more like a theoretical or conceptual question:
> which is better, using exception or return code for
[quoted text clipped - 3 lines]
> code (not generating error/exception) so it is more
> compatible with other programming language.
Anything using COM had better be able to deal with HRESULT,
which is the standard COM way of passing back return codes,
and all methods in your VB class interfaces return HRESULT.
> Now we are migrating the COM object into .NET component
> but wondering whether I should change my code to work
> with exception instead? How popular is the use of
> exception? Is it supported by all .NET-enabled
> programming language?
They had better be, or they'll get the Shaft.NET even worse
than Visual Basic did!
--
Joe Foster <mailto:jlfoster%40znet.com> "Regged" again? <http://www.xenu.net/>
WARNING: I cannot be held responsible for the above They're coming to
because my cats have apparently learned to type. take me away, ha ha!