Solved

installation problem of ocx without visual studio

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need to retreive data from .TFS file exported by DVR 8 222
sumNumber challenge 16 139
has77  challenge 9 90
Capture logon name 13 88
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: 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 …
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

830 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