Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注意到使用旧 VC6 ( msvcrt.dll ) 编译的 DLL 仍然可以运行和“可调用”,即使是与msvcr100.dll链接的 DLL (或程序)
非常方便,但是您是否认为在一个进程中同时拥有两个运行时是个好主意?
虽然在一个进程中组合多个 C 运行时并不是一个好主意,但在 Windows 上,通常没有办法绕过它。只要您不使用单独的 CRT 实现(最常见的情况:FILE*)在各部分之间传递 CRT 实现的结构,它应该可以毫无问题地工作,至少在 C 中。使用 C++,不同的异常处理会变得稍微复杂一些模型,并且由于 C++ 是 C++。