MS VC ++ how to build a DLL without requiring vc redist

I am trying to create a simple .Net wrapper around some basic C ++ code.

C ++ code does not rely on anything in the vcredist DLL, so I wonder if I can set up my project, so it doesn't require these dlls to work?

I would really like my users to download and run vcredist, just for the simple operation of the DLL.

+4
source share
1 answer

You need to link your DLL with the option "Use CRT as a static library":

Project Properties / Configuration / C / C ++ / Code Generation / Runtime Library / Multithreading (ie, not any of the "DLL" options).

+8
source

All Articles