Re: Class does not exist error
- From: "Thorsten Albers" <albersRE@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Apr 2005 15:30:57 -0700
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
----------------------------------------------------------------------
.
- References:
- Class does not exist error
- From: Lindsay
- Re: Class does not exist error
- From: Thorsten Albers
- Re: Class does not exist error
- From: Lindsay
- Re: Class does not exist error
- From: Thorsten Albers
- Re: Class does not exist error
- From: Sam Hobbs
- Re: Class does not exist error
- From: Thorsten Albers
- Re: Class does not exist error
- From: Sam Hobbs
- Class does not exist error
- Prev by Date: Re: Determining Win XP vs. Classic styles
- Next by Date: Re: Determining Win XP vs. Classic styles
- Previous by thread: Re: Class does not exist error
- Next by thread: DEVICE CONTEXT FOR BITMAP
- Index(es):
Relevant Pages
|