Click here to Skip to main content
15,885,171 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

i do have C dll project based on VCP2008 and i would like to eliminate all link time dependencies of it to the VCRT 9.0 library. I already LoadLibrary/GetProcAddress/CallFunc all necessary msvcrt.dll functions i need from the standard system supplied msvcrt.dll and this works fine. Removing the manifest would be another solution (once i do have fully removed all dependencies), but there is still the dependency on the __try/__catch/__finally by using the _except_handler3() function. I did google a lot, but could not find any suitable solution for this, maybe i missed something. Anybody andy idea how to solve this?

Thanks in advance

K.
Posted

1 solution

The solution is to use the Compiler Flag "/MT" to link statically agains the functions. Hope this helps,...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900