February 4th, 2000, 04:02 PM
I have used Visual Basic 5.0 to build a fairly large program to help
teachers keep track of their students' progress in school. It's been very
successful and I used the feedback from users to produce several updates to
the program.
Then one day disaster struck! I had downloaded and installed a freeware
program which had been written in Visual Basic 6.0. This program replaced
my file c:\Windows\System\Comdlg32.ocx with a Visual Basic 6.0 file. It
caused no problem when running my program, but ever since then I have been
unable to run the program from within Visual Basic 5.0 editor.
The problem seems to be that Visual Basic recognises that a later version
of Comdlg32.ocx has been registered and will then not let me add it as a
component. If I delete the version 6 Comdlg32.ocx file from
Windows\System\ and replace it with the original file I still get an error
when trying to add the version 5 control as a component to the project (or
any new project I try to make). The very helpful(!) error message reads:
" could not be loaded
Does anyone know a way round this without having to reinstall Windows or
upgrade to Visual Basic 6.0? Do I need to tweak some registry settings?
teachers keep track of their students' progress in school. It's been very
successful and I used the feedback from users to produce several updates to
the program.
Then one day disaster struck! I had downloaded and installed a freeware
program which had been written in Visual Basic 6.0. This program replaced
my file c:\Windows\System\Comdlg32.ocx with a Visual Basic 6.0 file. It
caused no problem when running my program, but ever since then I have been
unable to run the program from within Visual Basic 5.0 editor.
The problem seems to be that Visual Basic recognises that a later version
of Comdlg32.ocx has been registered and will then not let me add it as a
component. If I delete the version 6 Comdlg32.ocx file from
Windows\System\ and replace it with the original file I still get an error
when trying to add the version 5 control as a component to the project (or
any new project I try to make). The very helpful(!) error message reads:
" could not be loaded
Does anyone know a way round this without having to reinstall Windows or
upgrade to Visual Basic 6.0? Do I need to tweak some registry settings?