Results 1 to 18 of 18

Thread: Help! Can't open VB project now in Vista

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Posts
    87

    Help! Can't open VB project now in Vista

    I'm running Vista and have been working on a VB6 project for a while. Today suddenly when I try to open it I get a "error accessing the system registry" popup and I can not open the project. After I exit the .vbw file is 0 bytes. I was able to open a different project file that was a very basic project so VB6 is working but any suggestions on what I can do to open this current project?

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Help! Can't open VB project now in Vista

    Was this project created under xp?
    You can open the vbp using notepad to see if all the paths are correct. Otherwise try creating a new vbp and adding all the classes, modules, and forms to it.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Posts
    87

    Re: Help! Can't open VB project now in Vista

    Yes it was. I ended up manually registering the dlls I use in the project and it let me reopen it so I guess that was the solution to the problem.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Help! Can't open VB project now in Vista

    Were these dlls references?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Posts
    87

    Re: Help! Can't open VB project now in Vista

    Yes most of them were and the one that seemed to be the one that needed re-registering was a .dll

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Help! Can't open VB project now in Vista

    Yes, because in XP the references referred to one set of classids and when you upgraded to Vista all the classes get redone/upgraded so they have new classids etc. That makes the reference links break in the vbp file.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Posts
    87

    Re: Help! Can't open VB project now in Vista

    Well the strange thing is that it worked for a number of weeks in Vista - just today all of a sudden it happened. Oh well, guess that's Vista for you

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Help! Can't open VB project now in Vista

    The paths are eval'd in the classids in the reg. as I just double checked. So maybe the vbp simply got corrupted. It happens once in a while too. Are you running service pack 6 for vs/vb?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9
    Lively Member
    Join Date
    Jun 2007
    Posts
    100

    Re: Help! Can't open VB project now in Vista

    << Well the strange thing is that it worked for a number of weeks in Vista - just today all of a sudden it happened. Oh well, guess that's Vista for you >>

    I don't think this is random, as the same happened to me right around the time it happened to you. I had made no changes to the system, though I think an automatic Windows Update ran. A system restore did not fix the problem.

  10. #10
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Help! Can't open VB project now in Vista

    Were you able to reregister the dlls and RobDog888 suggested to the OP?

  11. #11
    Lively Member
    Join Date
    Jun 2007
    Posts
    100

    Re: Help! Can't open VB project now in Vista

    I was able to register all of my .DLL and .OCX files (right-click CMD.EXE and choose "Run as Administrator", then use regsvr32 to register the files).

    I still cannot load my VB project, however.

    So I transferred my VB project to another Vista machine and could not load it on that machine either. Then transferred it to an XP machine and the project loaded fine.

    I'm logged on as administrator on all three machines, so that shouldn't be an issue. I'm going to try disabling UAC now to see if that does anything.

  12. #12
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Help! Can't open VB project now in Vista

    If you are running VB 6 as administrator then the UAC wont make any difference.

    Try recreating the vbp on vista and adding the forms, modules, and classes to it.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  13. #13
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Help! Can't open VB project now in Vista

    Quote Originally Posted by RobDog888
    Try recreating the vbp on vista and adding the forms, modules, and classes to it.
    Yep....open a new, standard exe project. Remove the default Form1 and add everything from the old project to it.

    Save the project, exist VB, then open VB again and see if you can open your project.

  14. #14
    Lively Member
    Join Date
    Jun 2007
    Posts
    100

    Re: Help! Can't open VB project now in Vista

    Oddly enough, it is the UAC. Confirmed on both of my Vista machines. Disable UAC, I can load the project, reenable UAC and I cannot load the project.

    I've been working in this particular VB project with UAC enabled for months without any troubles. I have to assume Windows Update modified the way UAC works. That's the only change that would have occurred on both my Vista machines.

  15. #15
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Help! Can't open VB project now in Vista

    My projects still function fine on my system. Was your system an upgrade from XP or a fresh ful install? The UAC shouldnt be interefrring especially if you are running as an Administrator. I would assume its a issue with the Vista install if its an upgrade.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  16. #16
    Lively Member
    Join Date
    Jun 2007
    Posts
    100

    Re: Help! Can't open VB project now in Vista

    Both Vista machines are factory installs, not upgrades. I don't have time to test right now, but I'll bet the problem has something to do with protected mode. I'll reinstate UAC and disable protected mode and see what happens later on today.

  17. #17
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Help! Can't open VB project now in Vista

    Protected Mode displays in Internet Explorer. It turns on when using the UAC and off when the UAC is disabled.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  18. #18
    Lively Member
    Join Date
    Jun 2007
    Posts
    100

    Re: Help! Can't open VB project now in Vista

    Just to close this thread out: I uninstalled VBTurboLite and was able to reactivate UAC. Not sure what that's about, but there it is.

    Thanks for the help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width