Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top