Click here to Skip to main content
16,020,669 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Is there any possible way for me to install vb6 in
windows 7 ultimate edition 64bit Operating System?

I install vb6.0 to my laptop with above specification with successful but when i load my project the vb6 keep asking me error to load the project because of the some component are missing or failed to load. Its keep popup the .ocx file are error to load. It's something like vb6dgrid.ocx and vb6gdlist.ocx reference are missing. I did trying to do all the possible way to fix it including to follow this great step from CHill60 but still failed to fix. This is the step:

This could be one of
1. You are missing the component vbalSGrid6.ocx on your machine
2. Your copy of vbalSGrid6.ocx is out of date or corrupt
3. vbalSGrid6.ocx has not been registered on the PC where it won't load

If this was previously working then consider what you have installed or uninstalled since it last worked on this machine

[EDIT] OP reports problem not resolved. Try these steps to narrow down the issue...Do this on the machine that you are having problems with

1. Open a new Visual Basic 6 Project - Standard EXE
2. Add the DBGrid component to the Project, Components
3. Take note of the location and name of the OCX (I may have got the name wrong above!)
4. Place a DBGrid on the form
5. Save and Build the project

If you got this far, then you have proven that the vbalSGrid6.ocx on your machine is ok. If you couldn't get this far then you need to uninstall and reinstall the component (which might be a good idea anyway)

If everything is fine so far then carry on to check the following ...

6. Open up your Project1.vbp from 4 above using a text editor (e.g. Notepad, Notepad++, UltraEdit etc)
7. Find the line that says something like (the numbers will be different to this example)
Hide Copy Code
Object={C932BA88-1234-1234-A56C-00AA003668DC}#1.1#0; vbalSGrid6.ocx
8. Now do the same with your (real) project - the text should be exactly the same
9. If not, then copy the line from Project1.vbp and replace the line in your project vbp
10. Do the same with Form1.frm and the form in your project that has this grid on it. This time the line will look something like
Hide Copy Code
Object = "{F9043C88-1234-1234-A3C9-08002B2F49FB}#1.2#0"; "vbaSGrid6.ocx"
and will appear near the top of the .FRM file.

11. If there is no such line in the FRM file OR if the line does not exactly match the one in Form1.frm then copy it across

Now open your project in the Visual Basic IDE and it should load ok.

If all that doesn't work then consider rebuilding the form that has the problem - allow it to load (if prompted to continue loading the project after the error then hit Yes)
The grid will probably be converted into a PictureBox - remove that.
Add the Grid back on again, ensuring that you get the name exactly right.
You will need to redo any configuration (properties) but the code behind should still be ok.

so i am asking the expert that is there any possible way for me to fix it or not?
i trying to get rid from vb6 but u know that i dont have a choice because i need to do a comparison between this language. Thank you very much.
Posted
Comments
[no name] 15-Mar-15 22:50pm    
I have no experience with VB6 whatsoever but I also ran into a roadblock getting Visual Studio 6.0 to run on Windows 7. My solution was to install Windows XP in a VirtualBox (see www.virtualbox.org) on Windows 7 and install Visual Studio there. Maybe it's a solution for you too.
JOE Heart Under Blade 15-Mar-15 23:10pm    
yeah that is my last option actually, so i just ask here 1st before do the last option. maybe someone outside they got an others option. because i know codeproject is the best reference site. anyway thank you bro.
den2k88 4-Sep-15 11:44am    
At work we are forced to use VB6 and my colleague did the very same thing: no way to make it work under Win7 64 bit.
Maciej Los 16-Mar-15 3:32am    
Joe, do you really want to use VB6? I'd suggest to forget about it. Use new, more flexible langauge: VB.NET!
den2k88 4-Sep-15 11:43am    
Please, please, please, sometimes a developer just don't have the choice. This answer bring no good to anyone...

1 solution

 
Share this answer
 
Comments
bayotle 21-Apr-15 15:31pm    
The links above worked for my VB6/Win7 install, mainly just turning off UAC and creating the MSJAVA.DLL file.
Maciej Los 21-Apr-15 15:43pm    
I'm glad i can help ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900