OCX problem using VB5 on PC with VB6 installed 
Author Message
 OCX problem using VB5 on PC with VB6 installed

You can install VB5 and VB6 on the same PC.  However, when VB6 upgrades the
ocx controls, in  some instances it screws things up.  I have found this
problem with the comctl32.ocx (Windows common controls) and the comdlg32.ocx
(commond dialog control), and it may occur with others.

You create a project on a PC that has only VB5.  You check it into
SourceSafe and check it out on a PC that has VB5 and VB6 installed.  You
open it in VB5 and it works fine.  You save it and check it back in.  When
you check it out and open it on the PC with only VB5, you get error messages
that it cannot find comctl32.ocx and comdlg32.ocx.  The messages show the
path to the folder that the project is in, not the system directory
(c:\myproject\comctl32.ocx insted of c:windows\system\comctl32.ocx).  If you
attempt to set references to the controls, you run into problems compiling
the program.

I have found the following workaround:  After you check out the files on the
VB5-only PC, open the  .vbp file in a text editor and delete the references
to comctl32.ocx and comdlg32.ocx.  Then open the project in VB and add the
components back.  Save the changes to the vbp file and close the project.
Then when you open the project again it will work fine.

Mon, 26 Mar 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Problem running THREED32.OCX in VB6 after installing the .NET release

2. COMDLG32.OCX problem after installing VB6

3. Problem installing the vb5 control msflxgrd.ocx

4. Problem with OCX files when installing a VB5 application

5. Install of Ftp Client using MS ICP ftpct.ocx problems

6. Problems with installing app using mscal.ocx control

7. Using OCX compiled with VB6 in VB5 SP3?

8. Using OCX compiled with VB6 in VB5 SP3?

9. Error Instal Project VB6 in PC with Win98

10. Winsock.OCX VB5 & VB6 Problem

11. Installing VS.NET and VB5 on the same PC

12. Running VB 4.0 (32bit) app on PC installed w/VB5.0


Powered by phpBB® Forum Software