I think you're nearly there, Rick. Just make sure you are following the rules about how to set out paths for components:
if your component is in e:\inetpub\webroot\c21ar\components\agents\agent.cfc and the web root is at e:\inetpub\webroot\c21ar, then you would invoke the component with the following: ("Instantiate" is another term that confused me at first - how is 'instantiate' different from'invoke'? answer: it's the same thing) <cfset agentLibrary = createObject("component","components.agents.agent) /> Note the following: [A] the component does not have .cfc as part of its name in the createobject function. [B] the path to the component is either a relative path from the page calling it, or from the web root. Best to use the path from the web root that way if you ever move the pages calling the components around, they'll still work. [C] the path is expressed in dot notation, not using slashes. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On Mon, Jun 16, 2008 at 3:04 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > Yes, that's a good explanation of the encapsulation perspective > and code. > > See the message I just posted for even more basic info on trying > to help a cfinvoke function locate a cfc. Unless I put it in the > same folder as the calling page, I get an error saying it can't be > found no matter how I try to set up a path using the "source" attribute, etc. > > ??? > > Rick > >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307544 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4