Use VB ActiveX dll with ColdFusion

Posted on 2002-05-22
Last Modified: 2013-12-16
I have written several ActiveX dll in VB. Now I am asked to use them with ColdFusion. I have no experience with ColdFusion.

My 2 questions:

1. Can anyone give me a line of ColdFusion code example on how to use MyDLL.MyObject(MyParameter) through ColdFusion.

2. Are there any special configurations necessary on the ColdFusion Server to run my ActiveX.dll

Any quick help is greately appreciated.
Question by:HiThere
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Accepted Solution

vbDoc earned 150 total points
ID: 7028137
To call a COM object in ColdFusion, type the following:
<CFOBJECT TYPE="COM" CLASS="Macramedia.Comex.1" NAME="objCompany" ACTION="Create">

This example creates a Company object and then polulate it with properties such as the following:

<CFSET objCompany.company_name="Macromeda">
<CFSET objCompany.for_profit="1">

The information that you have entered into the object can be used within a ColdFusion page as follows:
  Company Name: #objCompany.company_name#<br>
  For Profit: #objCompany.for_profit#<br>


Author Comment

ID: 7030141
Thanks vbDoc,

I will try this and let you know.

Would this work with any of my ActiveX dll (compiled in VB6) provided that they are registered accordingly on the server ? I ask this because someone, who claims to be CF expert, warned me that one needs MS Transaction Server to make this work (which sounds like nonsense to me).

Any ideas ?

Expert Comment

ID: 7030157
I think that he is thinking DCOM and not DLL. I mySelf have tried it, but I have a good source that I got it from.


Expert Comment

ID: 7060225
Hey .. .. did it work?

Author Comment

ID: 7067347
Sorry vbDoc,

I was on leave for two weeks. I should have mentioned this earlier not to keep you waiting.

Your answer is good. Thanks a lot.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Visual Studio 2005 text editor 10 48
Passing a Text Box name to a Sub 6 102
Application.cfc - what is the order of events? 4 63
which modules are active in VB6 project? 6 51
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following:…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question