Time:
Scotland: Fri, 8:15 pm
Rhode Island: Fri, 3:15 pm
Florida: Fri, 3:15 pm
New Mexico: Fri, 1:15 pm
California: Fri, 12:15 pm

Click here to visit Livelife365.com

Click here to visit nmdarts.com



Buy this Ad Space.

180px wide.

Please get in touch with KH@ if you are interested and make an offer.

CLICK HERE TO GET AUCTION BAR NOW
US$10 per year - Save $100s!
The Fabulously Unfair
WebX Auction Bar. For Ebay etc.
Ro-Sham-Bo the opposition. Laugh like Eric Cartman when you win! CLICK HERE NOW!


More information and sign-up.

WebXpertz Hosting.
Custom fit from $5pm. PHP/MySQL
You'll save money, we'll save money. Seems fair to me. Interested? If so Please PM me here and tell me what you need. Thanks!


Please click here for more information

For continued disscussion on this topic : cfobject issue...


drumsticks
01-13-2005, 09:20 PM
Hello,

I'm using a client software that calls a cfcomponent, essentially a web service, in which a cffunction within the cfcomponent invokes an out-of-process (exe) com component using cfobject. The issue is the action parameter equaling 'connect'.

I manually start the com exe so that it is already running on the server. When the client software connects to the web service, i receive a test statement back to tell me if the cfobject has effectively invoked the com object using connect action parameter.
Instead, it errors (not being able to find the already running com exe) and it runs a cfobject statement inside the cfcatch with the action parameter equal to create instead.

Here is the example:

<cfcomponent>
<cffunction name="testdbf2sql" hint="Test the testdbf2sql COM Object" output="true" access="remote" returntype="string">

<cfargument name="user" type="string" required="true" hint="Client Username" displayname="UserName">

<cfargument name="filename" type="string" required="true" hint="filename" displayname="FileName">

<cftry>
<cfobject action="connect" context"local" type="com" name="dbf2sql" class="dpcomobject.dpcomobject">

<cfcatch>

<cfobject action="create" context="local" type="com" name="dbf2sql" class="dpdbftosqlsvr.dpdbftosqlsvr">
<cfreturn "Failed COM">

</cfcatch>
</cftry>

</cffunction>
</cfcomponent>

Why can I not get this connect action parameter to work properly?

Regards,
Drumsticks

hotpepper
01-19-2005, 08:39 PM
Can you try create first then connect and test it inside a .cfm page?