[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Upgrading VBX to ActiveX (VB3 to VB 5)

Posted on 1998-09-24
2
Medium Priority
?
255 Views
Last Modified: 2010-04-30
I'm trying to upgrade an application from VB3 to VB5.
I have already registered all the OCX that replace the VBX used in the VB3 version, but when I try to load the project (VB3 makefile), the load goes fine but at the end I get a message saying 'Can't perform requested operation.'. I thought the problem was the components list so I tried another solution.
I've created a new project, selected the components I needed and then tried to add one form at a time. But then I found another problem, some controls aren't recognized and are replaced by PictureBox, this hapen's with 3DControls (SSPanel, SSFrame,..), MaskedEDit, etc.... I thought this controls would be automatically updated to their new version(OCX) that is already registered in the components window.
Does anybody know how can I solve this problem, which is the best way to upgrade one project from VB3 to VB5?
0
Comment
Question by:jorgemiranda
[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
2 Comments
 
LVL 3

Accepted Solution

by:
HATCHET earned 200 total points
ID: 1436408
jorgemiranda,

You need to do a few things to make your project work in VB 5 :

1) Start a new project in VB 5
2) Right Click on the Tool Box containing all of the Controls you can use in your project and select "Components..." and find your new .OCX ActiveX Control.  Check it to add it to your project and click OK
3) Create all of your Forms, Modules, etc. all over again and MAKE SURE that the names of all the Forms, Modules, and objects in them such as the TextBoxes, ListBoxes, etc. all have the same names as your project in VB 3
4) Replace the old VBX Controls in your old project with your new ActiveX control in your new one
5) Once you've duplicated all your objects in VB 5, copy the code from your VB 3 project into the appropriate windows of VB 5.  Your code should work fine as long as you've got all the objects across the same as VB 5 is backwards compatable with VB 3 code.
6) Do some double checking and debugging just to make sure the transfer of code went smoothly and correctly and you're good to go!

I know this will take a bit to do, but it's the best way to asure that you've make a good cross-over to VB 5.  If I had to do what you're trying to do, this is what I would do.

Good luck,

HATCHET
0
 

Author Comment

by:jorgemiranda
ID: 1436409
I acomplished to pass the forms to VB5.
I loaded the from and after that created only the controls that weren't automatically updated.
0

Featured Post

Independent Software Vendors: 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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Suggested Courses

656 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