House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Trying to load ImageMagick DLL

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hi All,
Didier Giet
01/30/07 06:03 A
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Didier Giet
01/30/2007 06:03 AM

Hi All, I am trying to use ImageMagick DLL. I use a <cfobject> <cfobject type="COM" action="create" class="ImageMagickObject.MagickImage.1" name="toto" /> When i dump the object created <cfdump var="#toto#" /> /***********************************************************/ object of coldfusion.runtime.com.ComProxy {5630be5a-3f5f-4bca-a511-ad6a6386cac1} Methods Composite([out,in]VARIANT, [out, retval]VARIANT) GetTypeInfo([in]UINT, [in]UI4, [out]VOID, [out, retval]VOID) Remove([in]VARIANT, [out, retval]VOID) Identify([out,in]VARIANT, [out, retval]VARIANT) AddRef([out, retval]UI4) GetIDsOfNames([in]USERDEFINED, [in]I1, [in]UINT, [in]UI4, [out]I4, [out, retval]VOID) Release([out, retval]UI4) QueryInterface([in]USERDEFINED, [out]VOID, [out, retval]VOID) Add([out,in]VARIANT, [out, retval]VARIANT) OnStartPage([in]UNKNOWN, [out, retval]VOID) Stream([out,in]VARIANT, [out, retval]VARIANT) Mogrify([out,in]VARIANT, [out, retval]VARIANT) TestHarness([out,in]VARIANT, [out, retval]VARIANT) GetTypeInfoCount([out]UINT, [out, retval]VOID) Convert([out,in]VARIANT, [out, retval]VARIANT) Invoke([in]I4, [in]USERDEFINED, [in]UI4, [in]UI2, [in]USERDEFINED, [out]VARIANT, [out]USERDEFINED, [out]UINT, [out, retval]VOID) OnEndPage([out, retval]VOID) Compare([out,in]VARIANT, [out, retval]VARIANT) Montage([out,in]VARIANT, [out, retval]VARIANT) Get Properties Count([out, retval]I4) Item([in]VARIANT, [out, retval]VARIANT) Messages([out, retval]VARIANT) _NewEnum([out, retval]UNKNOWN) /********************************************************/ but when i try to use the object like <cfset msgs = toto.Convert("logo:","-format","%m,%h,%w","logo.jpg") /> /****************************************/ The selected method Convert was not found. There are no methods with the specified method name and argument types. Please check your function and try again. L´erreur s´est produite dans C:\Data\EDILLIAV2\library\testIM_OLE.cfm: line 7 5 : <cfdump var="#toto#" /> 6 : <cfoutput>avant<br></cfoutput> 7 : <cfset msgs = toto.Convert("logo:","-format","%m,%h,%w","logo.jpg") /> /***********************************************************/ Thanks for your help.

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
01/30/2007 09:35 AM

----- Excess quoted text cut - see Original Post for more ----- It looks to me like the Convert method accepts two arguments, not four. 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!

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Didier Giet
01/30/2007 11:01 AM

>> When i dump the object created <cfdump var="#toto#" /> > >It looks to me like the Convert method accepts two arguments, not four. > >Dave Watts, CTO, Fig Leaf Software >http://www.figleaf.com/ >I have tried this <cfset maVar=""> <cfset theChemin = "logo: -format '%m,%h,%w' 'c:\logo.jpg'"> <cfset toto.Convert(theChemin, maVar) /> <cfset toto.quit()> <cfset ReleaseObject(toto)> <cfoutput>maVar = #maVar#<br></cfoutput> with the same result. Didier Giet


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference