Exception

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello,

I have a class with a function which returns a string.

However, at the same time I might need to return an error code
(integer).

I need to access this code after calling the function.

How can I do this? Maybe using exception some how?

Thanks,

Miguel

.



Relevant Pages

  • Re: Various error codes: (was: Add AUXILIARY object class to inetOrgPerson entry)
    ... There are some legal implications of using English strings -- sometimes, ... >> error code as the first hex number of the server error ... >> The problem with returning string errors is that they need to be ... >> With DSIDs -- try searching the KB with the dsid value. ...
    (microsoft.public.windows.server.active_directory)
  • Re: using NULL pointers in COM
    ... *string" if I exit with an error code: ... you exit with an error code. ... pointed-to memory, a crash or heap corruption ensues. ... This has nothing to do with your initializing or not initializing the ...
    (microsoft.public.vc.atl)
  • Re: Try Finally...
    ... The exception I raise most often is EWin32Error. ... EWin32Error also carries the string message of the error code. ...
    (comp.lang.pascal.delphi.misc)
  • Re: using NULL pointers in COM
    ... it is possible for me to not modify that "BSTR ... *string" if I exit with an error code: ... you exit with an error code. ...
    (microsoft.public.vc.atl)
  • An Error while running Error Handling Code
    ... strCallingProc As String, Optional vParameters, Optional bShowUser As ... Is there something that is wrong in the On Error code? ...
    (microsoft.public.access.modulesdaovba)