COM and CFMX can be a tricky little beast...
I seem to remember having the same problem connecting to Outlook via
COM. I was dealing with passing an integer to get a particular contact,
or folder. In some cases you can pass an integer as long as you surround
it in single quotes:
i.e.
<cfloop from="1" to="#tmpAddressList.AddressEntries.count#"
index="entry">
<cfset thisEntry =
tmpAddressList.AddressEntries.Item('#entry#')>
<cfoutput>#thisEntry.address#<br></cfoutput>
</cfloop>
In CF5 the same code would look like this:
<cfloop from="1" to="#tmpAddressList.AddressEntries.count#"
index="entry">
<cfset thisEntry = tmpAddressList.AddressEntries.Item(#entry#)>
<cfoutput>#thisEntry.address#<br></cfoutput>
</cfloop>
In cases where this did not work I resorted to using getFirst() and
getNext() to iterate through a collection to get to the object I wanted
to use. In your case this may or may not be possible, but there may be
alternative methods you can access for the COM object that will allow
you to work around.
What type of COM object are you connecting to?
If it's a Microsoft one, you should be able to find pretty good
reference on msdn.
Spike
Stephen Milligan
Team Macromedia - ColdFusion
Co-author 'Reality Macromedia ColdFusion MX: Intranets and Content
Management'
http://spikefu.blogspot.com
> -----Original Message-----
> From: Paolo Piponi [mailto:[EMAIL PROTECTED]]
> Sent: 05 February 2003 11:18
> To: '[EMAIL PROTECTED]'
> Subject: [ cf-dev ] Cannot handle VT
>
>
> Anyone had this error message from a COM object:
>
> "java.lang.RuntimeException: Can not handle VT 22."
>
> Almost got to the end of the CFMX upgrade but one final bug.
> We are passing an integer but the COM ain't accepting it. It
> just chucks back the above error. CF5 is fine.
>
> Any ideas anyone? I've played with all formats and EVALUATEd
> it but to no avail.
>
> We can rebuild the COM (if I beg) so I'd rather beg to you guys first.
>
> Thanks,
>
> Paolo
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED] For human help, e-mail:
> [EMAIL PROTECTED]
>
>
>
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]