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
Solved

Use VB ActiveX dll with ColdFusion

Posted on 2002-05-22
5
249 Views
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.
0
Comment
Question by:HiThere
  • 3
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
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:
<CFOUTPUT>
  Company Name: #objCompany.company_name#<br>
  For Profit: #objCompany.for_profit#<br>

HTH
0
 
LVL 1

Author Comment

by:HiThere
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 ?
0
 
LVL 2

Expert Comment

by:vbDoc
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.

0
 
LVL 2

Expert Comment

by:vbDoc
ID: 7060225
Hey .. .. did it work?
0
 
LVL 1

Author Comment

by:HiThere
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.
TP
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

791 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