Solved

installation problem of ocx without visual studio

Posted on 2001-06-03
4
250 Views
Last Modified: 2013-11-20
Introduction:

     We developed an ActiveX control named: EventProgAPI by using MFC ActiveX control wizard. By developing this control we are creating an ocx file that will allow us to distribute it through a set up file allowing us to install the ActiveX control in different languages.


Problem:

We developed a package for this ActiveX control by using Packaging and deployment wizard of VB 6.0 (programs->Visual Studio->Package and Deployment option).

When we install this control by using setup file (.cab)  on a machine that does not contain Visual Studio it is unable to register it. (It is giving the Error ?ActiveX could not register error in registering ocx file?) but it successfully registering it on a machine that contains Visual Studio.

We are unable to find out the dependency files that we need to include along with Package.
Is there any solution for it or any methodology so that we can install our ActiveX control without the Visual Studio?



0
Comment
Question by:ravi_pvkumar
4 Comments
 
LVL 1

Expert Comment

by:majorjohn
Comment Utility
It is most probably because of incorrect versioning of Regsvr32. Include Regsvr32 of the computer where u developed the OCX and try registering using that Regsvr32.
0
 
LVL 12

Expert Comment

by:migel
Comment Utility
Hi!
IMHO you forget add in the installation files DLL that your OCX depending on.
0
 
LVL 49

Accepted Solution

by:
DanRollins earned 100 total points
Comment Utility
>> We are unable to find out the dependency files...

To learn what DLLs are needed by your OCX, right-click the OCX file in the Explorer and then choose View Dependencies.

Another way... when you debug your program, place a breakpoint just before the OCX is loaded and instantiated.  Now step over the load and watch the Debug Window.  There will be a series of lines that identify the DLLs that are required by the OCX.

-- Dan
0
 

Expert Comment

by:mickeer
Comment Utility
Check that you got a new version of atl.dll installed.

/Micke
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

12 Experts available now in Live!

Get 1:1 Help Now