HOWTO: Port VB 3.0 projects w/ .Vbx to VB 4.0 16-bit & 32- bitID: Q138531
|
You can convert existing Visual Basic 3.0 projects into projects that can be loaded in Visual Basic 4.0 (both 16-bit and 32-bit versions). If a Visual Basic 3.0 project that contains .vbx files is loaded in Visual Basic 4.0, Visual Basic 4.0 (both the 16-bit and 32-bit versions) automatically "morphs" the .vbx file into the corresponding .ocx file (16-bit or 32-bit) in the new project as long as there is an entry in the Vb.ini file that allows Visual Basic to know which .ocx file the .vbx file should be "morphed" to. Also, you should make sure that the .ocx file pointed to in Vb.ini is in the location specified. The 32-bit edition of Visual Basic 4.0 requires that all Visual Basic 3.0 forms be saved as text for the conversion to work correctly.
For example, if an existing Visual Basic 3.0 project contains Threed.vbx,
the corresponding entries must be present in Vb.ini for both the 16-bit and
32-bit versions of Visual Basic 4.0. Both versions of the threed .ocx file
should be present in the specified directories:
[VBX Conversions16]
threed.vbx=
{0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0;C:\WINNT35\SYSTEM\threed16.ocx
[VBX Conversions32]
threed.vbx=
{0BA686C6-F7D3-101A-993E-
0000C0EF6F5E}#1.0#0;C:\WINNT35\System32\threed32.ocx
File not found: 'vbxname.vbx' -- Continue Loading Project?
Keywords : kbVBp400 PrgCtrlsCus VB4WIN
Version : WINDOWS:4.0
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: June 7, 1999