dcsimg
Results 1 to 14 of 14

Thread: Why won't my VB program open in W10?

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2019
    Posts
    3

    Why won't my VB program open in W10?

    Why won't my VB program open in W10?

    Sometime ago when I was still using Windows XP,
    I created a simple program in VB6.

    It ran OK in Windows XP
    Later it would run OK in W7, but I always had a problem re-locating its main window after I'd tabed away to other programs.

    I'm now trying to run it in a new W10 install,
    but it won't open, even after using the W10 troubleshooter to run it in XP & W7 mode.

    In W10, running it in XP mode:
    After double-clicking its .exe file, the W10 popup loads to ask if I want to run the program,
    but when I click on YES, the window closes, but the program does not run.

    I've also tried it in a new W7 install, but I get a popup that says:
    runtime error 53 - file not found

    Many thanks

  2. #2
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    6,888

    Re: Why won't my VB program open in W10?

    1- welcome to the Forum
    2- is this on the same computer (just upgraded OS's)?
    3- Did you create the program on this computer in XP OS?
    4- Do you have the PROJECT on this Win10 platform, or just the .exe file?

    Those are just the START questions.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2019
    Posts
    3

    Re: Why won't my VB program open in W10?

    Quote Originally Posted by SamOscarBrown View Post
    1- welcome to the Forum
    2- is this on the same computer (just upgraded OS's)?
    3- Did you create the program on this computer in XP OS?
    4- Do you have the PROJECT on this Win10 platform, or just the .exe file?

    Those are just the START questions.
    The general answer to all your questions is NO:
    This is a new PC & install.
    So I've just got the .exe file on this PC,
    but I should have the original Project somewhere, possibly on this PC
    It was originally created on my old XP PC years ago.

  4. #4
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    3,370

    Re: Why won't my VB program open in W10?

    Error 53 - File not found, means that some external file your program wants to open does not exist.

  5. #5
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    6,888

    Re: Why won't my VB program open in W10?

    Yeah, you need to copy that entire project directory structure over to this computer. May have to recompile, but what Arn says is a problem...that .exe you have is looking for a file within a directory (folder) which does not exist on this computer.
    Now, this may or may not work simply by copying the directory structure over...I assume now that Visual Basic 6.0 is NOT installed on the Win10 platform. Which means, IF you have to recompile, you will need to install VB6.0.

    Sammi

  6. #6

    Thread Starter
    New Member
    Join Date
    Apr 2019
    Posts
    3

    Re: Why won't my VB program open in W10?

    Quote Originally Posted by SamOscarBrown View Post
    Which means, IF you have to recompile, you will need to install VB6.0.
    Sammi
    Thanks Guys, I thought it may be something like that, so I'll try your advice.

    However, if I need to recompile:
    Where would I find VB6?
    And will it install OK on W10?

    Also:
    And if I passed my program onto others, how would they run my program, if they did not have VB6 installed on their PC?

    Many thanks

  7. #7
    Lively Member
    Join Date
    Feb 2019
    Posts
    110

    Re: Why won't my VB program open in W10?

    Post the contents of your VBP file here, especially lines that start with Reference or Object. These till us how many extra files that you need to install besides the EXE and any files that it opens.

  8. #8
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    12,782

    Re: Why won't my VB program open in W10?

    If you intend to pass a program onto others then most of the time what you need to do is create a proper installer that will install and register and dlls, ocxs and/or other files used by the program. There are cases where this is not needed.

  9. #9
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    6,888

    Re: Why won't my VB program open in W10?

    VB6 can be purchased (e.g eBay) for AROUND 100-200 USD, BUT, be wary....only buy from reputable sellers, and make sure the License Key is provided!!!!
    Yes, it will install on Win 10 (do a search on this website for "VB6 Windows 10"--you will find out how to make it successful....Elroy has a great summary some where here (so include his name in the search).

  10. #10
    Junior Member
    Join Date
    May 2017
    Posts
    21

    Re: Why won't my VB program open in W10?

    If you are not using any third-party OCX or DLLs in your project, you might get away with installing the VB6 Runtime package.
    It looks like MS no longer distribute this pkg themselves, but there are other options like https://sourceforge.net/projects/vb6extendedruntime/
    Others may exist, web search for "VB6 Runtime".
    As always, take due diligence and virus check anything you download.

  11. #11
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    12,782

    Re: Why won't my VB program open in W10?

    There should be no need to install a VB6 runtime. It ships preinstalled as part of Windows and has for many years.

  12. #12
    Junior Member
    Join Date
    May 2017
    Posts
    21

    Re: Why won't my VB program open in W10?

    Quote Originally Posted by DataMiser View Post
    There should be no need to install a VB6 runtime. It ships preinstalled as part of Windows and has for many years.
    In that case, the OPs' executable maybe uses a OCX or DLL reference that isn't part of the standard runtime. The Error 53 could also suggest the program is attempting to open a data file that doesn't exist - or the path doesn't exist.
    That said - despite MS stating VB6 runtime is still supported (https://docs.microsoft.com/en-us/pre...support-policy) - I don't see the runtime files installed on my virgin win 10 test system.
    The OP could try installing the latest run-time anyway: https://www.microsoft.com/en-us/down....aspx?id=24417

  13. #13
    PowerPoster
    Join Date
    Feb 2006
    Posts
    19,875

    Re: Why won't my VB program open in W10?

    The core runtime and many other libraries are indeed preinstalled. Unless you do something really devious, attempts to replace them with the old redist package meant for old and now unsupported OSs will be fended off by the Windows File Protection service.

  14. #14
    Frenzied Member jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    1,306

    Re: Why won't my VB program open in W10?

    The error 53 can mean that the file in question does not exists, or it is not in the location expected. Windows 10 has some different file locations than Windows XP, and some locations that do exist are protected.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width