If you are any good at VB programming, you could write a "wrapper" COM
object that will accept a simple data type from ColdFusion, convert it
to the correct destination datatype and then send it to the final COM
object.

M!ke 

-----Original Message-----
From: Tony Fahlberg [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005 2:41 PM
To: CF-Talk
Subject: Passing an array to a COM interface in ColdFusion 6.x

Hi - I'm a fairly new ColdFusion developer with an issue that I hope
someone has some insight on.  I have a client which upgraded there
ColdFusion server from 5.x (microsoft based?) to MX or 6.x (java
based?).  I have a C++ COM component interface/method that takes a
SAFEARRAY* as a parameter.  Previously with 5.x this method worked fine.
Now in 6.x when passing a one deminsional string array to this COM
component I get the following error:

coldfusion.runtime.locale.CFLocaleDateFormatException:"1st
String in Array" is an invalid date.

I have tried changing the parameter type in the COM component from a
SAFEARRAY* to a VARIANT* but still get the same error.  Any insight on
this issue or how I can pass my array to a C++ COM component would be
much appreciated.  

Thanks!



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198062
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to