Jump to content

For some reason I send an exe file to someone that I coded on Visual Studio and they get 2 errors.

  • VCRUNTIME140D.dll
  • ucrtbased.dll

These errors are apparently occurred from when you don't have Visual Studio installed, but obviously you shouldn't need VS to need to run EXE files, so why is that the case for me?

Link to comment
https://linustechtips.com/topic/609846-exe-files-dont-work-with-vs/
Share on other sites

Link to post
Share on other sites

They need the VS distributable runtime on their system or you need to statically build it into the executable. 

CPU: Intel i7 - 5820k @ 4.5GHz, Cooler: Corsair H80i, Motherboard: MSI X99S Gaming 7, RAM: Corsair Vengeance LPX 32GB DDR4 2666MHz CL16,

GPU: ASUS GTX 980 Strix, Case: Corsair 900D, PSU: Corsair AX860i 860W, Keyboard: Logitech G19, Mouse: Corsair M95, Storage: Intel 730 Series 480GB SSD, WD 1.5TB Black

Display: BenQ XL2730Z 2560x1440 144Hz

Link to post
Share on other sites

Did you send him a release build or a debug build?

Desktop: Intel i9-10850K (R9 3900X died 😢 )| MSI Z490 Tomahawk | RTX 2080 (borrowed from work) - MSI GTX 1080 | 64GB 3600MHz CL16 memory | Corsair H100i (NF-F12 fans) | Samsung 970 EVO 512GB | Intel 665p 2TB | Samsung 830 256GB| 3TB HDD | Corsair 450D | Corsair RM550x | MG279Q

Laptop: Surface Pro 7 (i5, 16GB RAM, 256GB SSD)

Console: PlayStation 4 Pro

Link to post
Share on other sites

10 hours ago, trag1c said:

They need the VS distributable runtime on their system or you need to statically build it into the executable. 

So all exe files have runtime in them, because I have friends that don't have it and run lots of different EXE files.

Link to post
Share on other sites

2 minutes ago, mattonfire said:

I sent him the debug build, what is the difference?

Try sending him the release build.

Debug build is very slow and requires those DLLs to provide debugging information in Visual Studio (which your friend doesnt have installed).

Desktop: Intel i9-10850K (R9 3900X died 😢 )| MSI Z490 Tomahawk | RTX 2080 (borrowed from work) - MSI GTX 1080 | 64GB 3600MHz CL16 memory | Corsair H100i (NF-F12 fans) | Samsung 970 EVO 512GB | Intel 665p 2TB | Samsung 830 256GB| 3TB HDD | Corsair 450D | Corsair RM550x | MG279Q

Laptop: Surface Pro 7 (i5, 16GB RAM, 256GB SSD)

Console: PlayStation 4 Pro

Link to post
Share on other sites

1 minute ago, mathijs727 said:

Try sending him the release build.

Debug build is very slow and probably requires those DLLs to provide debugging information in Visual Studio (which your friend doesnt have installed).

How do I sent a release build?

Link to post
Share on other sites

2 minutes ago, mattonfire said:

How do I sent a release build?

Build in release mode (to left to the green play button).

 

Then navigate to your projects folder (the default is Documents/Visual Studio 2015/Projects/NAMEOFPROJECT).

After you have build the project in release mode this folder should contain a "Release" folder with the exe inside.

Desktop: Intel i9-10850K (R9 3900X died 😢 )| MSI Z490 Tomahawk | RTX 2080 (borrowed from work) - MSI GTX 1080 | 64GB 3600MHz CL16 memory | Corsair H100i (NF-F12 fans) | Samsung 970 EVO 512GB | Intel 665p 2TB | Samsung 830 256GB| 3TB HDD | Corsair 450D | Corsair RM550x | MG279Q

Laptop: Surface Pro 7 (i5, 16GB RAM, 256GB SSD)

Console: PlayStation 4 Pro

Link to post
Share on other sites

10 minutes ago, mathijs727 said:

Build in release mode (to left to the green play button).

 

Then navigate to your projects folder (the default is Documents/Visual Studio 2015/Projects/NAMEOFPROJECT).

After you have build the project in release mode this folder should contain a "Release" folder with the exe inside.

No-one is testing it now, because they don't trust me :/

 

Link to post
Share on other sites

  • 2 weeks later...
On ‎6‎/‎12‎/‎2016 at 5:39 PM, mattonfire said:

No-one is testing it now, because they don't trust me :/

 

Fair enough.

Judge a product on its own merits AND the company that made it.

How to setup MSI Afterburner OSD | How to make your AMD Radeon GPU more efficient with Radeon Chill | (Probably) Why LMG Merch shipping to the EU is expensive

Oneplus 6 (Early 2023 to present) | HP Envy 15" x360 R7 5700U (Mid 2021 to present) | Steam Deck (Late 2022 to present)

 

Mid 2023 AlTech Desktop Refresh - AMD R7 5800X (Mid 2023), XFX Radeon RX 6700XT MBA (Mid 2021), MSI X370 Gaming Pro Carbon (Early 2018), 32GB DDR4-3200 (16GB x2) (Mid 2022

Noctua NH-D15 (Early 2021), Corsair MP510 1.92TB NVMe SSD (Mid 2020), beQuiet Pure Wings 2 140mm x2 & 120mm x1 (Mid 2023),

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×