Solved

Use VB ActiveX dll with ColdFusion

Posted on 2002-05-22
5
245 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 is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
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…

911 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

16 Experts available now in Live!

Get 1:1 Help Now