Stefan, If you are running 64bit you will need a 64bit version of the COM. I know of no way around that. I would contact the vendor. If it's .NET you can use it through the .NET integration services (either 32 or 64) but there are a good number of nuances to that as well.
-Mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -----Original Message----- From: Stefan Richter [mailto:[email protected]] Sent: Monday, April 18, 2011 10:41 AM To: cf-talk Subject: Re: Creating COM object - troubleshooting Thanks Mark. 32/64bit: there seems to be only one DLL in the program's directory, and it's in x86 so I guess it's 32bit only. The server is a 64bit machine. Do I somehow need to 'tell' CF that we are looking at a 32bit DLL here? I take your point on .NET and COM, I was just goofing around to see if it would work :-) I agree that it's likely to be a COM. As for 'is it registered': how can I tell? I'm not that clued up on these things, but I did use OLE Viewer and saw 'ACAWebThumb 1.0 Type Library' under 'Type Libraries'. Is that confirmation? Does the fact that the straight forward PHP call works tell us anything? Cheers Stefan On 18 Apr 2011, at 16:18, Mark A. Kruger wrote: > > FYI - .NET and COM are very (very very) different - I would not expect this > DLL to work both ways. It's either a COM or an assembly. I would suspect > it's a COM (the path "activeX control" gives it away). Also - you are sure > the COM is registered? > > -mark > > > Mark A. Kruger, MCSE, CFG > (402) 408-3733 ext 105 > www.cfwebtools.com > www.coldfusionmuse.com > www.necfug.com > > > -----Original Message----- > From: Stefan Richter [mailto:[email protected]] > Sent: Monday, April 18, 2011 9:38 AM > To: cf-talk > Subject: Creating COM object - troubleshooting > > > Hi all, > I'm trying to use a third party DLL called ACA Webthumb > http://www.acasystems.com/en/web-thumb-activex/ > I've installed this on a Windows 2008 server running CF 9.0.1 > > I'm having issue instantiating the library in CF. I'm using the supplied > sample file that came with ACA. Here's the problematic line from it: > > WebThumbMaker = CreateObject("Com", "ACAWebThumb.ThumbMaker", "local"); > > This results in error: > An exception occurred when instantiating a COM object. > The cause of this exception was that: java.lang.RuntimeException: Can not > use native code: Initialisation failed. > > > I also tried using a tag based syntax specifying the DLL directly: > <cfobject type=".NET" name="aca" class="ACAWebThumb.ThumbMaker" > assembly="C:\Program Files (x86)\ACASystems\ACA WebThumb ActiveX > Control\acawebthumb.dll"> > > Error: > Class ACAWebThumb.ThumbMaker not found in the specified assembly list. > The assembly that contains the class must be provided to the assembly > attribute. > > > Does anyone have any tips? > > Best wishes, > > Stefan > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343811 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

