开发者

msvcr100 and msvcrt

开发者 https://www.devze.com 2023-04-05 08:31 出处:网络
I noticed that DLL compiled with the old VC6 (msvcrt.dll) still runnable and \"callable\" even into a DLL (or a program) t开发者_StackOverflowhat is linked against msvcr100.dll

I noticed that DLL compiled with the old VC6 (msvcrt.dll) still runnable and "callable" even into a DLL (or a program) t开发者_StackOverflowhat is linked against msvcr100.dll

Very convenient, but do you just think it's a good idea to have both runtimes at the same time in a process ?


While it's not exactly good idea to combine multiple C runtimes in one process, on Windows, there is often no way around it. It should work without any problems as long as you don't pass structures implemented by CRT's between parts using separate CRT implementations (most common case: FILE*), at least in C. with C++, things get slightly more complex with different exception handling models and by virtue of C++ being C++.

0

精彩评论

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

关注公众号