Topic: ASP with Com to CF 7 with Com


grannyklump    -- 06-03-2005 @ 3:03 PM
  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
  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
  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
  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


EasyCFM.COM ColdFusion Forums : http://www.easycfm.com/forums
Topic: http://www.easycfm.com/forums/viewmessages.cfm?Forum=23&Topic=7145