Re: Class does not exist error



Sam Hobbs <samuel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im Beitrag
<OhS8xQqSFHA.3244@xxxxxxxxxxxxxxxxxxxx>...
> Note that Lindsay says that the error description is "Class
> does not exist", which is consistent with the constant I provided and is
> consistent with the comment in winerror.h for error 1411.
> ...
> Regardlous, since the error is &H80070583, I don't understand how
> vbObjectError is relevant.

VB reports "Class does not exist" because this is the interpretation of
&H80070583 if it is interpreted as a HRESULT. But if this is indeed the
interpretation of the error code to be used depends on the object which
throws the error.

If the object that throws the error keeps to the rules for HRESULT error
codes it is "Class does not exist".

The VB online help gives the following advice: "When returning a
user-defined error from an OLE Automation object, set Err.Number by adding
the number you've chosen as an error code to the constant vbObjectError.
For example, you use the following code to return the number 1051 as an
error code:
Err.Raise Number := vbObjectError + 1051, Source:= "SomeClass"

If the object that throws the error keeps to this simplier VB method the
error code can mean anything.

I would agree with you in that it might be the error code for "Class does
not exist". But I would add that it also could mean anything else. Further
conclusions can be drawn only from the respective code where the error
occurs.
Unfortunately "Lindsay" seems to have lost all interest in this thread. So
we presumably will never be able to tell what actually caused the error and
what the error was...

--
----------------------------------------------------------------------
THORSTEN ALBERS Universität Freiburg
albers@
uni-freiburg.de
----------------------------------------------------------------------

.



Relevant Pages

  • Re: LAM/MPI MPICH-2 Compatibility
    ... Here is the error code that I have obtained: ... which says that, for example, the first "process is dead" message ... consistent with the messages about call stack, ...
    (comp.parallel.mpi)
  • Re: SetPixelFormat fails in two-process implementation under Vista
    ... error code of -1073283066. ... (That code is not garbage; ... consistent, and there's a good bet that it can be interpreted as 0xC0070006, ... Maybe on Vista it's ...
    (comp.graphics.api.opengl)
  • Re: MEncoder build problem - probably simple... (shell stuff)
    ... Not really inconsistent ... ... programs return an error code, ... values meaning "there was an error". ... The semantics are consistent if you think them through. ...
    (uk.comp.os.linux)
  • tektronix 2465
    ... Does anyone know the interpretation of an error code ... "TEST 05 FAIL A2" ... on startup of a 2465? ...
    (sci.electronics.equipment)
  • WSAError returns 2
    ... WSAGetLastError() returns 2. ... This is not a Winsock-specific error code, ... Am I correct that this is the interpretation that should be given to this ...
    (microsoft.public.win32.programmer.networks)