Solved

Installing a VB6 OCX

Posted on 2012-12-21
3
647 Views
Last Modified: 2012-12-21
My application uses the VB6 FlexGrid. When assembling an installment package I include MSFLXGRD.OCX. I need some education.

Question: Is it necessary for the installer to register this OCX on the target machine?

Question: Does it matter where the installer puts this file? Is the installation folder for the application all right?

Question: This application was developed under XP. Will there be a problem installing to Win7 (or 8 or etc…)?
0
Comment
Question by:NormaPosy
3 Comments
 
LVL 69

Assisted Solution

by:Éric Moreau
Éric Moreau earned 200 total points
ID: 38713679
>>Question: Is it necessary for the installer to register this OCX on the target machine?

Yes. All ActiveX components need to be registered.

>>Question: Does it matter where the installer puts this file? Is the installation folder for the application all right?

No. the Default Windows\System32 is the right place. A single component (MSFLGXGRD for instance) can only be installed once on a computer. The registry will indicate where it is located.

>>Question: This application was developed under XP. Will there be a problem installing to Win7 (or 8 or etc…)?

It should.
0
 
LVL 16

Accepted Solution

by:
HooKooDooKu earned 300 total points
ID: 38713973
If you are using the VB Package & Deployment Wizard to create a "setup.exe", and your "Package type" is "Standard Setup Package":

1. "setup.exe" will register the OCX for you, additional steps by the installer to manually register the OCX is not necessary.

2. OCX and DLL files that will be common across all applications should be installed into the "$(WinSysPath)" as set in the Wizard on the 'Install Locations" screen.  

If you create your own OCX or DLL (such as an ActiveX exe), those should be installed in the "$(AppPath)".  However, these too can be installed in "$(WinSysPath)" if you can insure that your OCX/DLL will have a unique name, and that name changes any time you break binary compatability.

3. Common Window's OCXs shouldn't have problems at this time if you're XP system was brought up to date with the latest fixes the Microsoft ever released.  But then again, you're at the mercy of what Windows will or will not manage to "break" going forward as VB6 is no longer supported.  You're more likely to run into issues if you have 3rd party dependancies.

If you do have issues, you might be able to solve them (at least on Windows 7) by using the Virtual XP machine.  We so far have not had any issues continuing to maintain and support our VB application on the Virtual XP machine running on Windows 7.
0
 

Author Closing Comment

by:NormaPosy
ID: 38715023
Thank you both very much.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

760 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

20 Experts available now in Live!

Get 1:1 Help Now