VB3 to VB 5 Conversion with Sheridan control

We are in the process of converting a VB3 application to VB5. We are using SSpannel controls from Sheridan. We are unable to convert the forms with these controls. The 32 bit Controls are installed properly. I can use these controls on new form but old form will not convert. Any solution ? Do I have to re-write the code ?
lipikaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rantanenCommented:
Let VB do the conversion, then insert into the produced VBP file following line

Object={0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0; THREED32.OCX

if you are using version 1.0 or

Object={0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#2.0#0; THREED20.OCX

if using version 2.0

0
lipikaAuthor Commented:
Tried your solution. Did not work. IS there any specific way to convert the project. We tried loadeding  Vb3 project in vb5. opend Vb3 form(txt format) in Vb5. Is there any other way ?
0
rantanenCommented:
I don't have VB3 installed now so I can't be really sure of everything.

One thing I know. I had a small VB3 source with Frame and Option buttons from Sheridan's Threed.vbx. It converted otherwise fine to VB5 (SP2) on Win95 except font sizes and styles.

Is your problem specific to SSPanel? Do you have other controls from this VBX on your form? Do they convert properly?

Are you using this SSPanel as container? If that is the case, one workaround would be to replace it in VB3 eg. with frame. First select all controls inside the panel and cut them. Then delete panel and insert a frame. Select the frame and paste controls you cut into it. Finally give the frame same name which your panel had. Functionality should now be the same.

Now convert the project to VB5. Once there repeat the previous procedure replacing the frame with SSPanel.

I don't know what is less work, this procedure or total rewrite.

BACKUP YOUR VB3 PROJECT IF YOU ARE GOING TO TRY THIS.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

trkcorpCommented:
I abandoned using Sheridan Software tools altogether just because of this very problem with upward compatibility. You cannot get where you want to go w/out some re-write.  There is a help file supplied with the upgrade to OCX from VBX that explains all the differences. Basically you need to create new forms and mimmick the old ones... BIG pain in the butt.
0
lipikaAuthor Commented:
We are using most of the 3D controls from Thread, which includes option button, push button panel.etc. I understand rantanen could do this in Vb5 + sp2. I also do not have Vb3 installed where I am trying to convert Vb3 project to Vb5. I do not have sp packs installed with Vb5. I will try this again. I am looking for a step by step procudure to go about it starting from VB5 Installation.
0
yronnenCommented:
No can do. Period.
0
rantanenCommented:
The answer to this one is so simple that I'm ashamed I didn't realize it in first place (shows only I haven't done these conversions directly from VB3 to VB5).

You can do this conversion, but you must have THREED.VBX  (or for that matter any MS VBX which does not have a counterpart in the Windows Common Controls) installed in the computer where you are doing this conversion. I tried this with several VB3 samples I found in the net and they all converted these controls with some minor modifications necessary. More work was to translate all API calls to their 32-bit equivalents.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lipikaAuthor Commented:
Thanks a lot for your help. We have got it right. The problem was the regedit vbcntls.reg file was not done properly. This file
 provide the information and means to use the controls in
design and run time. It is important to follow the steps given in  tools\controls directory/readme.txt.
However, we saw some problems like frame caption font changes even though property remains unchanged. I am not sure what else may be the problem.
For the benefits of others who may be facing the same problem I am sharing our experience.
We should have the VBX files available in the system
The third party control OCX (even if they are part of Vb disk) should be  registered properly.
One more tips :
For the conversion of API calls one can use migration tool
comes with  VB5 CD \Tools\Unsupprt\Migrwiz..
LAstly : The www.Crescent.progress.com  has a very good white paper on VB5 conversion issues and benefits.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.