Maybe I'm looking at the code wrong, but are your own vars. You know what
they are because you set them:

<cfset w=0>
<cfset h=0>

What am I missing?

-----Original Message-----
From: Philip Dunn [mailto:[EMAIL PROTECTED]
Sent: 29 April 2006 19:17
To: CF-Talk
Subject: Re: COM object return


>If w and h are public properties of the object, you should be able to
reference them >using the object name as a prefix (ex: g.w, g.h).

Reference fails with: "Failed attempting to find "W" property/method on the
object COM error 0x80020006. Unknown name."

<cfSet g=CreateObject("COM","shotgraph.image")>
***other init stuff here ****
<cfset w=0><cfset h=0>
<cfset x=g.gettextdimensions("this is the string",w,h)>
<cfoutput>w = #g.w#</cfoutput>

 If I fail to initialize w or h, then "Error resolving parameter W" occurs.

The docs use VB examples, so my CF construct is different. The VB example:
g.GetTextDimensions text,x,y


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239114
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