Solved

installation problem of ocx without visual studio

Posted on 2001-06-03
4
263 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
[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
4 Comments
 
LVL 1

Expert Comment

by:majorjohn
ID: 6151597
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
ID: 6151909
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
ID: 6154755
>> 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
ID: 6155761
Check that you got a new version of atl.dll installed.

/Micke
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
if loop in java 3 174
Doc'in system (example?) BA 7 127
child constructor and parent constructor, overriding and overloading 6 95
Unix Command -- Challenging  question 7 106
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

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