I have a dll abc.dll.but when I open it in dependency walker,I depends on the MSVCR90.dll. I want to set the property of the project such type it should be independent of that dll. How it is possible.I am using vs2008.

有帮助吗?

解决方案

Statically link to the CRT (/MT). That will remove the msvcr90.dll dependency (by basically including the CRT inside your dll). Note that if your dll uses other dlls, their dependencies might drag msvcr90.dll and friends in after all. In such cases, you'd better off using dynamic linking.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top