Solved

installation problem of ocx without visual studio

Posted on 2001-06-03
4
253 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Looking for a specific application/software 2 104
Change owner from userA to server Local Administrators 7 59
move a line in eclipse 3 82
no14 challenge 14 62
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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.

895 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

15 Experts available now in Live!

Get 1:1 Help Now