【问题标题】:How to target Windows XP sp3 when compiling with Visual C++ 2010?使用 Visual C++ 2010 编译时如何定位 Windows XP sp3?
【发布时间】:2013-04-29 04:34:43
【问题描述】:

我正在尝试在 Windows 7 计算机上使用 Visual Studio 2010 Pro 编译 C++ 程序,以针对 Windows XP sp3 32 位。

我尝试过编译器和链接器设置,但无法生成可以在我的 Windows XP 计算机上运行的可执行文件。我总是收到错误“无法在 kernel32.dll 中找到函数 GetTickCount64 的入口点”并且程序无法运行。我知道 Windows XP 不支持 GetTickCount64(),而且我也没有在我的代码中使用它。

我没有安装其他版本的 Visual Studio,我已经在 windows XP 机器上安装了 Visual C++ 2010 Redistributable Package。

你知道如何做到这一点吗?

先谢谢了。

【问题讨论】:

    标签: visual-studio-2010 visual-c++ windows-xp target


    【解决方案1】:

    VC2010 默认以 Windows 7 为目标。 要将目标更改为 XP,请检查 Using the Windows Headers

    【讨论】:

    • 谢谢,我关注了那篇文章,我能够使程序正常工作。
    猜你喜欢
    • 2013-12-02
    • 2015-12-24
    • 2012-10-19
    • 1970-01-01
    • 2011-03-04
    • 1970-01-01
    • 2010-12-24
    • 2011-06-13
    • 1970-01-01
    相关资源
    最近更新 更多