gpt4 book ai didi

windows - 调用 TaskDialogIndirect 加载程序说找不到序号 345

转载 作者:可可西里 更新时间:2023-11-01 11:11:59 25 4
gpt4 key购买 nike

我为 TaskDialogIndirect 构建了简单的 MS 示例(参见 https://msdn.microsoft.com/en-us/library/windows/desktop/bb760544(v=vs.85).aspx)

当我运行它时,我得到“The ordinal 345 could not be located in the dynamic link library COMCTL32.dll”

上面的页面说它需要 ComCtl32.DLL 版本 6,但 C:\Windows\System32\ComCtl32.DLL 是 5.82.7601.18201,我在磁盘上的任何地方都找不到版本 6。

我正在运行带有 VS2012 的 Windows 7。 Vista 中添加了 TaskDialog,为什么我没有正确版本的 ComCtl32.DLL???

最佳答案

这是一个常见且有用的代码块,应该有助于加载正确的通用控件comctl32.dll:

#if defined _M_IX86
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_IA64
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif

关于windows - 调用 TaskDialogIndirect 加载程序说找不到序号 345,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37016803/

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