You're on the right path with using CreateObject().

First off, your server of course has to be Windows and can't be 64bit 
which doesn't have COM support.

Then you install and register the COM object on your server.

Once that's done, you instantiate it the way you're getting at:
API = createObject("com", "registeredComObjectNameHere");

then access the methods on it:
userProfile = API.cUserInfo();



On 2/1/12 3:04 PM, jack Lemay wrote:
> Hey everyone,
>
> I've been asked to work on a website that interacts with a database via an 
> API. I have the manual to the API and think I may be in over my head, but 
> would like to explore this a little more. Is it as Daunting as it looks? The 
> database is set up and the current old website (php) uses this API to 
> interact with the website, mostly letting customers update account info from 
> the website. I don't have access to the current website files.
>
> About the API:
>
> This ..." API is a COM+ application. It
> provides a set of COM objects that can be manipulated by COM-
> compliant development tools such as Visual Basic, Visual C++, Visual
> C#, VSTA and so on. "
>
> The manual lists classes with input paramaters and return values like:
>
> "Example
>
> The following example shows how to create a new user profile once the
> account has been validated:
>
> Dim objUserProfile as Object
> Dim lRetCode as Integer
> ‘
> Set objUserProfile = CreateObject("API.cUserInfo")
>
> "
>
> I've been using CF for years, but don't know how to integrate with this.
>
> Any tips or suggestions on where to look for help on this? Or does this 
> require knowledge of a different language altogether?
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:349730
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to