running visual studio release build .exe file in d

2019-09-20 08:24发布

enter image description hereI have built a visual studio c++ console application(x64 release build). The .exe file in the release folder runs fine with the required dlls. When i try to run it on other machine it throws error

The Application was unable to start correctly (0xc000007b). Click OK to close the application

There is no x86-x64 lib mismatch issues.

In another machine it works well.I don't know whether it needs any resource to run the .exe

I have tried building the application statically still no results..

2条回答
来,给爷笑一个
2楼-- · 2019-09-20 08:41

1)It is possible the new machine is missing important software like .NET framework or something similar. Please install the other frameworks and then try to run it on other machine.

2)If new machine has other OS try to run program in compatibility mode

查看更多
仙女界的扛把子
3楼-- · 2019-09-20 08:49

You need the same Visual Studio redistributable .dlls on your target machine.

You'll either need to install the redistributable or install visual studio on that machine.

Also note that it makes a difference whether you're using Express or not.

So you can't develop on Visual Studio 2008 Express and then install the Visual Studio 2008 Redistributable.

查看更多
登录 后发表回答