Solved

ActiveX:How to Compile to make it independent fron other ActiveX

Posted on 2002-04-18
12
169 Views
Last Modified: 2010-05-02
Scenario:
I have Activex-1 from an imaging software and I created Activex-2 which uses Activex-1 to scan images using a browser.
Im using the HTML <object> tag to open my Activex-2 in a browser.

Problem:
My Activex-2 only runs if the client browser has the imaging software installed. I can write an HTML code to download and register Activex-1 to the client browser so that my Activex-2 will run properly but it is against the license agreement of my imaging software.

Is there a way to compile my Activex-2 to make it independent(no need to install/distribute the imaging software's activex to the client browser )?

Regards  
0
Comment
Question by:cezarF
12 Comments
 
LVL 14

Author Comment

by:cezarF
ID: 6952478
150 points will be awarded if there is a solution to the problem
0
 
LVL 2

Expert Comment

by:corvanderlinden
ID: 6952789
There is no compile option for this.

You could use late binding in your ActiveX-2 and test at runtime of the Activex-1 is there.
In your project remove the reference to Activex-1

dim x as Object

on error resume next

set x = CreateObject(ProgIDOfAciveX-1)

If x Is Nothing then
 MsgBox "ActiveX-1 not found"
else
 MsgBox "ActiveX-1 found"
endif

Disadvantage : late binding, but this should not be a problem because scanning software is not very fast itself
0
 
LVL 14

Author Comment

by:cezarF
ID: 6952866
does that mean that i need to install Activex-1 in the user's machine? But, my main objective is not to do so.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 2

Expert Comment

by:corvanderlinden
ID: 6952915
In this case the program tests if the activex-1 is on the client machine. If not you can take the actions you want

Is this not what you mean ??
0
 
LVL 14

Author Comment

by:cezarF
ID: 6955392
What I need to accomplish is to be able to run my activeX-2 regardless Activex-1 is installed in the browser client or not. :)
0
 
LVL 2

Expert Comment

by:corvanderlinden
ID: 6959012
Then use the CreateObject solution I gave you
0
 
LVL 14

Author Comment

by:cezarF
ID: 6962000
corvanderlinden ,

Thanks!, but if i'm going to use CreateObject, the physical file of my activex-1 should be available in the web client user's pc and should be registerd(which is not my objective).  

is it possible to use CreateObject to point to an object which is not available locally?
0
 
LVL 2

Expert Comment

by:corvanderlinden
ID: 6962065
if i'm going to use CreateObject, the physical file of my activex-1 should be available in the web client user's pc and should be registerd(which is not my objective).  

This is not true if you
Dim x as Object and set NO reference to your activex-1

is it possible to use CreateObject to point to an object which is not available locally

Yes, I am saying this all the time, just use
Dim x as Object and set NO reference to your activex-1
0
 
LVL 14

Author Comment

by:cezarF
ID: 6962290
prodided that my activex-1 is in
http://mycomp.com/activex/activex-1.ocx, how am i going to code it?

regards
0
 
LVL 2

Accepted Solution

by:
corvanderlinden earned 150 total points
ID: 6964826
AAAAAHHHH, you want to talk to your activeX that is on a remote server ???????????

Then you are out of luck then the ocx HAS to be registered on the clients system, no other way to do that
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7660532
Hi cezarF,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept corvanderlinden's comment(s) as an answer.

cezarF, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7755158
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

856 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