View previous topic :: View next topic |
Author |
Message |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Mon Aug 22, 2016 6:41 pm Post subject: Visual Studio 2015 C++ questions. Need help! |
|
|
I have been trying to fix this for two days, but failed miserably....
My problem is:
I have written a simple but lengthy program using C++ in visual studio 2015, and I can run the .exe file in the Debug file on my computer (no compile error, the code is find). However, my friend cannot open the .exe file, which I sent to him, on his computer.
1) I have already told him to install Visual C++ Redistributable package 2015 for both 32 and 64 bit systems. He uses windows 7.
2) After installed the VC++ Redistributables, he still could not open the .exe because "ucrtbased.dll" and "vcruntime140d.dll" were needed. So I asked him to download those dlls.
3) After downloaded the dlls and put them in one folder with the .exe file, another error message poped up when trying to open the .exe. "0xc000007b" is the error code.
Can anyone help me fix this? I just want others to use my program.
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Mon Aug 22, 2016 7:31 pm Post subject: |
|
|
You need to build the program in release mode to distribute it. The debug mode will use the debug mode runtime which is not part of the redistributable.
_________________
- Retired. |
|
Back to top |
|
 |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Mon Aug 22, 2016 7:38 pm Post subject: |
|
|
atom0s wrote: | You need to build the program in release mode to distribute it. The debug mode will use the debug mode runtime which is not part of the redistributable. |
Thank you so much, the problem is solved.
|
|
Back to top |
|
 |
|