Solved

Use VB ActiveX dll with ColdFusion

Posted on 2002-05-22
5
254 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
[X]
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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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
Run code from text file in vb 1 103
Access 2013 combo box not working 3 76
Copy a row 12 75
Create Files based on Cell Values in a Range in Excel 12 44
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to Import and export files in 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 : Click on Too…
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…

751 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