Upgrading VB4 project to VB6 
Author Message
 Upgrading VB4 project to VB6

I have a problem that I cannot seem to find the answer too in the help
files. I hope that this is the correct place to get an answer, if not please
feel free to point me in the right direction.

I have a VB4 project which uses the THREED.VBX control. When I try and load
the project into VB6 I get the errors shown below. I have included the code
that generates these problems. From what I can see I need to convert the
form from but I have not been able to find the way to achieve this. Can
anyone give me a clue as to what I need to do.

Apologies for the large post but at least you have all the info in one hit.

Thanks for any help.

Regards

Ray

Line 69: Class Threed.SSFrame of control frmSelYear was not a loaded control
class.
Line 89: Class Threed.SSOption of control opt2Yr was not a loaded control
class.
Line 112: Class Threed.SSOption of control opt2Yr was not a loaded control
class.
Line 135: Class Threed.SSOption of control opt2Yr was not a loaded control
class.
Line 158: Class Threed.SSOption of control opt2Yr was not a loaded control
class.
Line 181: Class Threed.SSOption of control opt2Yr was not a loaded control
class.
Line 204: Class Threed.SSOption of control opt2Yr was not a loaded control
class.
Quite a few more errors of the same type...

The code looks like:

VERSION 4.00
Begin VB.Form forWeekTak
   Appearance      =   0  'Flat
   BackColor       =   &H00C0C0C0&
   Caption         =   "Weekly Takings"
   ClientHeight    =   4785
   ClientLeft      =   1590
   ClientTop       =   1845
   ClientWidth     =   5505
   BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
      Name            =   "MS Sans Serif"
      Size            =   8.25
      Charset         =   0
      Weight          =   700
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   ForeColor       =   &H80000008&
   Height          =   5190
   Icon            =   "WEEKTAKE.frx":0000
   Left            =   1530
   LinkTopic       =   "forWeekTak"
   ScaleHeight     =   4785
   ScaleWidth      =   5505
   Top             =   1500
   Width           =   5625
   Begin VB.CommandButton CmdSetDefaults
      Caption         =   "Set Defaults"
      Height          =   255
      Left            =   4200
      TabIndex        =   68
      Top             =   3840
      Width           =   1215
   End
   Begin VB.CommandButton cmdStopExcel
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      Caption         =   "Stop Excel"
      Enabled         =   0   'False
      Height          =   495
      Left            =   2880
      TabIndex        =   66
      Top             =   4200
      Width           =   1215
   End
   Begin VB.CommandButton cmdSaveData
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      Caption         =   "Save Data"
      Enabled         =   0   'False
      Height          =   495
      Left            =   1440
      TabIndex        =   65
      Top             =   4200
      Width           =   1215
   End
   Begin VB.CommandButton cmdViewData
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      Caption         =   "View Data"
      Enabled         =   0   'False
      Height          =   495
      Left            =   120
      TabIndex        =   64
      Top             =   4200
      Width           =   1215
   End
   Begin Threed.SSFrame frmSelYear
      Height          =   795
      Left            =   120
      TabIndex        =   3
      Top             =   2895
      Width           =   5295
      _Version        =   65536
      _ExtentX        =   9340
      _ExtentY        =   1402
      _StockProps     =   14
      Caption         =   "Select Year"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Begin Threed.SSOption opt2Yr
         Height          =   300
         Index           =   0
         Left            =   150
         TabIndex        =   9
         TabStop         =   0   'False
         Top             =   300
         Width           =   700
         _Version        =   65536
         _ExtentX        =   1244
         _ExtentY        =   529
         _StockProps     =   78
         Caption         =   "1990"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin Threed.SSOption opt2Yr
         Height          =   300
         Index           =   1
         Left            =   975
         TabIndex        =   8
         TabStop         =   0   'False
         Top             =   300
         Width           =   700
         _Version        =   65536
         _ExtentX        =   1244
         _ExtentY        =   529
         _StockProps     =   78
         Caption         =   "1991"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin Threed.SSOption opt2Yr
         Height          =   300
         Index           =   2
         Left            =   1845
         TabIndex        =   7
         TabStop         =   0   'False
         Top             =   300
         Width           =   700
         _Version        =   65536
         _ExtentX        =   1244
         _ExtentY        =   529
         _StockProps     =   78
         Caption         =   "1992"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin Threed.SSOption opt2Yr
         Height          =   300
         Index           =   3
         Left            =   2700
         TabIndex        =   6
         TabStop         =   0   'False
         Top             =   300
         Width           =   700
         _Version        =   65536
         _ExtentX        =   1244
         _ExtentY        =   529
         _StockProps     =   78
         Caption         =   "1993"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin Threed.SSOption opt2Yr
         Height          =   300
         Index           =   4
         Left            =   3600
         TabIndex        =   5
         TabStop         =   0   'False
         Top             =   300
         Width           =   700
         _Version        =   65536
         _ExtentX        =   1244
         _ExtentY        =   529
         _StockProps     =   78
         Caption         =   "1994"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin Threed.SSOption opt2Yr
         Height          =   300
         Index           =   5
         Left            =   4425
         TabIndex        =   4
         TabStop         =   0   'False
         Top             =   300
         Width           =   700
         _Version        =   65536
         _ExtentX        =   1244
         _ExtentY        =   529
         _StockProps     =   78
         Caption         =   "1995"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
   End

More code but not included.



Sat, 17 Mar 2001 03:00:00 GMT  
 Upgrading VB4 project to VB6

Quote:

>I have a VB4 project which uses the THREED.VBX control. When I try and load
>the project into VB6 I get the errors shown below.

The Sheridan 3D control is not included in VB6. It should be considered
obsolete and you should remove it from the project and replace the 3D
controls with standard ones as part of your upgrading project. If you insist
on continuing to use it, you can use the version of the control included
with VB4-32 or you can use the one that's on the VB5 CD (but not installed
with the main package).

Frank Carr



Sat, 17 Mar 2001 03:00:00 GMT  
 Upgrading VB4 project to VB6
Frank,

Thanks for your reply. I did realise that I need to replace it but in order
to do that I need to 'edit' the form file. What I don't know is what to
change to what (Well I have an idea of what needs changing  - thats sort of
obvious I don't know what to replace it with). Can you advise on that ?

Thanks for any further info

Ray

Quote:


>>I have a VB4 project which uses the THREED.VBX control. When I try and
load
>>the project into VB6 I get the errors shown below.

>The Sheridan 3D control is not included in VB6. It should be considered
>obsolete and you should remove it from the project and replace the 3D
>controls with standard ones as part of your upgrading project. If you
insist
>on continuing to use it, you can use the version of the control included
>with VB4-32 or you can use the one that's on the VB5 CD (but not installed
>with the main package).

>Frank Carr




Sun, 18 Mar 2001 03:00:00 GMT  
 Upgrading VB4 project to VB6

Quote:

>change to what (Well I have an idea of what needs changing  - thats sort of
>obvious I don't know what to replace it with). Can you advise on that ?

As I said, just change them to the equivalent standard controls.

Frank Carr



Sun, 18 Mar 2001 03:00:00 GMT  
 Upgrading VB4 project to VB6
Frank,

Sorry to appear extremely thick but when I load in the form it changes its
appearance and lots of items go missing. It gets converted to a PictureBox
which is not quite that same from what I can see of a frame set.

I was hoping that I could edit / convert the original source before trying
to load it in. That way I will save my self some considerable time having to
redesign and code the form (and the other half dozen with the same problem).
I only posted part of the problem on the for I posted there are at least 70
errors of the same to give you some idea of the scale.

If the only way to do it 'the hard' way OK - I was rather hoping for an
easier way.

Regards

Ray

Quote:


>>change to what (Well I have an idea of what needs changing  - thats sort
of
>>obvious I don't know what to replace it with). Can you advise on that ?

>As I said, just change them to the equivalent standard controls.

>Frank Carr




Mon, 19 Mar 2001 03:00:00 GMT  
 Upgrading VB4 project to VB6
Ray,

For some reason if VB tries to load a project with a control it doesn't
recognise, it defaults to a picture box.  You can generally reinstate the
original arrangement by deleting the picture box, adding a new control of
the appropriate type and renaming it to what it originally was called.

When you save the file it will ask you if you want to overwrite - generally
the appropriate answer is "Yes"!

HTH

Peter

Quote:

>Frank,

>Sorry to appear extremely thick but when I load in the form it changes its
>appearance and lots of items go missing. It gets converted to a PictureBox
>which is not quite that same from what I can see of a frame set.

>I was hoping that I could edit / convert the original source before trying
>to load it in. That way I will save my self some considerable time having
to
>redesign and code the form (and the other half dozen with the same
problem).
>I only posted part of the problem on the for I posted there are at least 70
>errors of the same to give you some idea of the scale.

>If the only way to do it 'the hard' way OK - I was rather hoping for an
>easier way.

>Regards

>Ray



Mon, 19 Mar 2001 03:00:00 GMT  
 Upgrading VB4 project to VB6
Frank,

Its OK I have now found out what to do. I had to install and register the
threed32.ocx on the VB6 CD. Now everything loads OK without an error.

Thanks for your comments.

Regards

Ray

Quote:


>>change to what (Well I have an idea of what needs changing  - thats sort
of
>>obvious I don't know what to replace it with). Can you advise on that ?

>As I said, just change them to the equivalent standard controls.

>Frank Carr




Wed, 21 Mar 2001 03:00:00 GMT  
 Upgrading VB4 project to VB6
Add the following to the VB.INI file

[VBX Conversions32]
threed.vbx={0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0;C:\WINDOWS\SYSTEM\th
reed32.ocx

Quote:

>I have a VB4 project which uses the THREED.VBX control.



Sat, 24 Mar 2001 03:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Upgrading VB4 project to VB6

2. VB4->VB5 upgrading projects control licensing problem

3. Upgrading a VB3 project to VB4(32 bit)

4. Upgrading a VB4 Project to VB5

5. .NET VB Wizard hangs upgrading VB6 project

6. Removing Older Controls From Upgraded VB6 Project

7. Oradynaset Problem when upgrading project from vb5 to vb6

8. Compiling VB6 project without upgrading to VS2008

9. Need info on Upgrading VB5 projects to VB6

10. Oracle, VB4 to VB6 upgrade, RDOColumn size

11. Upgrading source code from VB4 to VB6

12. Help - Upgrading from VB4.0 to VB6.0

 

 
Powered by phpBB® Forum Software