gpt4 book ai didi

c++ - 2015 visual studio 中的二进制兼容性

转载 作者:塔克拉玛干 更新时间:2023-11-03 07:42:08 25 4
gpt4 key购买 nike

在 2010 visual studio 中构建的遗留应用程序之一( native 应用程序)需要升级其在 visual studio 15 中构建的 DLL 之一,这可能吗?

最佳答案

如果接口(interface) 使用 C++ 标准库中的类型,例如 std::string,它不太可能工作。这些类型一般来自C++运行时,两个版本有不同的运行时库。

如果接口(interface)使用LPCSTR,实现可以在内部使用任何字符串库(标准、Qt 等)

关于c++ - 2015 visual studio 中的二进制兼容性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47673835/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com