>> I've been provided a .dll with a number of procedures written >> in VB5. The function I'm trying to access requires three >> inputs as arrays, the last one being an empty array (with a >> length) for it to store the results and return. The function >> requires all of the arrays by ref. I tried just passing it >> regular old arrays, no success. > >The way I've solved similar problems in the past is to do one of the >following: > >1. Rewrite the DLL to accept strings for all arguments. Yecch. >2. Write a COM "wrapper" that accepts strings, and invoke the COM DLL from >within your wrapper. Also, yecch. However, this is pretty easy to do, and >you can do it with Windows Script Host, so you don't even need a compiler. >You would write a WSH object with a COM interface, and invoke that from CF. > >Dave Watts, CTO, Fig Leaf Software >http://www.figleaf.com/ > >Fig Leaf Software provides the highest caliber vendor-authorized >instruction at our training centers in Washington DC, Atlanta, >Chicago, Baltimore, Northern Virginia, or on-site at your location. >Visit http://training.figleaf.com/ for more information!
Hi Dave, thanks for the suggestions. I'll have to go the 'wrapper' route since I can't access the guts of the .dll, it's from an agency that is nutsy-cookoo about protecting the code. Do you have any suggestions for resources on creating wrappers? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290006 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4