Cannot run visual studio C++ EXE on Windows 10

ButterBUNS 21 Reputation points

I made a C++ program on visual studio and transferred the file.exe to a USB drive and then onto my windows 10 laptop. I am currently running windows 11 on my main. When trying to boot the program on windows 10 I was presented with an error for multiple DLL file types. I installed the DLL files and now after trying to run the program I am prompted with the error "The application was unable to start correctly (0x000007b). Click OK to close the application." I have tried numerous things such as restarting and checking the disk. I am not very tech savvy so if someone could explain in simple terms that would be great and I appreciate your patience. ALSO, if someone could help, I would greatly appreciate it because I really want to show off my program to some colleagues. If all else fails, I guess I'll just download Visual studio on my windows 10 laptop.

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,626 questions
{count} votes

Accepted answer
  1. Viorel 114.4K Reputation points

    Try distributing the Release version of your program (instead of Debug). There is a dropdown list in toolbars where you should select "Release", and use the .exe file from "Release" subfolder.

    In addition, in Project Properties for Release configuration, C/C++, Code Generation, Runtime Library, try selecting "Multi-threaded (/MT)" instead of "Multi-threaded DLL (/MD)".

    If you are building the "x64" configuration, then make sure that the target Operating System is 64-bit.

    If this does not help, then probably you should install (on target machine) the Redistributable files: Do not copy system DLL files manually. Also show details about the type of your program.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful