Hi,
I'm working with IMAPI2 objects. The way my script works is not important.
The specific problem I have is that one method returns an object, but this
is not recognized as an usable object by VBS. I've this line that returns an
object:
Set objStream = objImage.ImageStream
objStream is an IStream object with its own methods, but trying to invoke
one of its methods, generates a runtime error: "Object Required
'objStream'". I found the following:
IsObject(objStream) returns FALSE
VarType(objStream) returns 13 (not 9 as expected for an object)
TypeName(objStream) returns "Unknown"
Is there any way to use the methods provided by this type 13 object in VBS ?
Thanks a lot.
Notice: I already posted this question on "MSDN Forums/Software Development
for Windows Vista/Optical Platform Discussion", but later I found out that
is not a problem of the IMAPI, while a generic VBS problem, so I decided to
post this message here. Please don't consider as a cross posting.
--
Massimo