开发者

C++ Chat client missing lib file

I have made a chat开发者_C百科 program with using Winsock2.h and the lib file ws2_32.lib. When I want to test the chat program out on a computer on another network, it shows me a message box with the text: "The program can't start because MSVCR100.dll is missing from your computer. Try reinstalling the program to fix this problem".

How do I make my program able to run on all windows 7 machines without having to install Visual Studio?


you should create a setup project which includes the required libraries and installs them in the client machine during your application's setup.

In fact you need a setup anyway if you want to create a shortcut to your program in the Start Menu or on the desktop for example.


You need the redistributable package for your visual studio version. For VS2010 (x86) can be found here:

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=5555

Alternatively, you can create an installer that will include the dlls.


Your program depends on the Visual C++ redistributal. You will need to bundle it with your programs installer.


You do not have to install Visual Studio, You do need to make sure all of your program's dependencys are on the destination computer. You would normally do this by creating a setup program. The dll that you are missing MSVCR100.dll can be found as part of the VC++ redistributable package

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜