Solved

Use VB ActiveX dll with ColdFusion

Posted on 2002-05-22
5
244 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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 automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now