EasyCFM.COM ColdFusion Forums / ASP to CFML / ASP with Com to CF 7 with Com

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: ASP with Com to CF 7 with Com

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

grannyklump
06-03-2005 @ 3:03 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 7
Joined: Aug 2004

I have been giving the task of rewriting an ASP web store that uses COM objects to CF. I cant seem to find any documentation or examples on how to do this? Can anyone lend a hand? The DLL's that have been registered as COM objects were written in VB 6. I need info on how to call the functions and output the returned data. Any help would be greatly appreciated.

Thanks
Richard

Webmaster
06-03-2005 @ 3:31 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Administrator
Posts: 4542
Joined: Jan 2002

First, maek sure that the objects are registered on the windows machine. To register objects use:

c:\winnt\system32\regsvr32.exe

Now you can use the following example:

<cfscript>
  //This will create the object instance
  objName = CreateObject("COM", "COM.NAME");

  //Now pass values and calls to it
  objName.CallinObject("values go here");
</cfscript>


That is more or less what you will need to do to interact with the COM objects themselves... let me know if you have any questions!

Thanks,
Pablo Varando
Team Macromedia Member
=====================================================

grannyklump
06-03-2005 @ 3:50 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 7
Joined: Aug 2004

These objects will be regiestered under Component Services in Windows Server 2003 (testing on XP machine) so i guess that will serve the same purpose?

objName = CreateObject("COM", "COM.NAME");
What does COM and COM.NAME represent?

And how do i parse the output?

Any help you can send me is great!! Thanks!

CJ
06-03-2005 @ 4:31 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Administrator
Posts: 4262
Joined: Oct 2002

the 'COM' represents...COM.  the type of object you're creating.  'COM.NAME' represents your object.

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functi44.htm#wp2588012


-CJ-
@ #coldfusion/DALNet
http://charlie.griefer.com


Website Designed and Developed by Pablo Varando.