0

I installed Windows 7. After installation of Visual Basic 5 I cannot manage to add components like the Microsoft Data Bound Grid Control (DBGRID32.ocx) and all the rest of the .ocx type controls. The error message is either "Permission denied" or "error accessing the register". Has anyone a solution other than renouncing Windows 7?

8
Contributors
10
Replies
23
Views
7 Years
Discussion Span
Last Post by HDJper999
0

Try uninstalling VB5 and then re-installing it as Administrator. This may solve your problem, it has done for similar issues I have had.

0

Exactly the same problem with me and I did install VB as Administrator and, just to make sure, re-installed it. But it didn't help.

Would really appreciate any other ideas.

0

More than likely the same problem as other very old compilers, such as vc++ 6.0. Upgrade the compiler -- VB 2008 Express is free, but I don't know if that version will do what you want it to do.

0

Excuse my lack of in depth knowledge but the problem arises before I get to the stage of running the code I've written, so is the compiler involved?

Just like CorradoC, I get the error after opening a project and then trying to add the DBGRID control. VB's Help gives several explanations but the only one that seems likely is 'You attempted to access the registry, but your user permissions don't include this type of registry access.' I'm set up as Adminstrator. So, any ideas?

0

I was unable to run Visual Basic ver. 4 ("OLEPRO32.DLL could not be registered") and several other old programs. Cured some of them by using Windows Explorer to find the executable file (e.g., VB.EXE), right clicking on the file, clicking on Properties, click on the Compatibility tab and checking both "Run this program in compatibility mode for Windows XP (Service Pack 3)" and the "Run this program as an administrator".

0

Thanks. Big step forward. The compatability bit was already set but Run as Administrator did the trick. I can now place the DBGRID control on a form, save the project, restart VB5 and open the project again.

But if I try to open an old project (developed under XP) I get an error and in the log file is "Class MSDBGrid.DBGrid of control dbg...... was not a loaded control class." I guess I could replace all the DBGRIDs on the forms but there's lots of them.

Anyone know of a quicker way?

0

I managed to answer my own question - just remove the offending forms from the project, add the DBGRID control and add the forms back in. Save the project and next it opens OK. So many thanks to Gareldmce!

0

I do all my VB5 development in XP window on Windows 7, I don't have any problem. If you generate and install set for your application, then it will install and run on Win 7 pcs. As you can see from a post I have just made application mostly runs on win 8.

0

I was having the same problem and solved it by doing exactly what you said: Using Windows Explorer to find the executable file (e.g., VB.EXE), right clicking on the file, clicking on Properties, click on the Compatibility tab and checking both "Run this program in compatibility mode for Windows XP (Service Pack 3)" and the "Run this program as an administrator. Thank you very much.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.