Skip to main content
August 5, 2010
Question

What is required for CF COM Support?

  • August 5, 2010
  • 2 replies
  • 627 views

Hi,

I am using a CF9 trial and am trying to instatiate a COM Server that I wrote. I can get some servers to work, while others will not. What does CF require of a COM Server? Does CF require any Implemented Categories be set when the server is registered (DLLRegisterServer)? If so what categories does it require? I cannot find this documented anywhere?

Thank you.

Steve

    This topic has been closed for replies.

    2 replies

    August 10, 2010

    Hi,

    Thank you for the suggestions.

    I can see my DLL listed in dcomcnfg, but how do I register a DLL in dcomcnfg?
    I have Admin Rights on my system. This is a developer licencse of CF on a single system.

    I know this is not a data type issue as I have only one method in my server that has no parameters or a return value. I can also see that CF does not call QI in the server.

    There is something I missing in registering the DLL and am just not sure what CF wants. Does CF require that it be a control? Does it have to support a container?

    Thanks,

    Steve

    August 13, 2010

    It would just appear the CFs support of COM is very limited as I can get these COM Servers to work in VB Script, VB6, Delphi, etc. just not in ColdFusion. CF is not even trying to call QueryInterface. This is a very big limitation of CF and enough that I will have to look at PHP or Ruby.

    August 9, 2010

    Doing some more testing it appears that Cold Fusion only supports some COM objects and not all. Still trying to figure out what Cold Fusion requires for a COM Server and why some work and others do not. It is very disapointing that this is not documented anywhere.

    Inspiring
    August 9, 2010

    Steve,

    Some pointers.

    • Use the "dcomcnfg" utility instead of your way to register your COM object.
    • Make sure that you have Admin rights before deploying your COM.
    • Also plz restart your machine after registering the DLL (and before testing your CF Code).

    HTH.