调用 TaskDialogIndirect 加载程序说找不到序号 345 [英] calling TaskDialogIndirect loader says ordinal 345 not found
问题描述
我为 TaskDialogIndirect 构建了简单的 MS 示例(参见 https://msdn.microsoft.com/en-us/library/windows/desktop/bb760544(v=vs.85).aspx)
I built the simple MS example for TaskDialogIndirect (see https://msdn.microsoft.com/en-us/library/windows/desktop/bb760544(v=vs.85).aspx)
当我运行它时,我得到无法在动态链接库 COMCTL32.dll 中找到序号 345"
When I run it I get "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.
The above page says it needs ComCtl32.DLL version 6 but C:\Windows\System32\ComCtl32.DLL is 5.82.7601.18201 and I can't find a version 6 anywhere on the disk.
我使用 VS2012 运行 Windows 7.TaskDialog 是在 Vista 中添加的,为什么我没有正确版本的 ComCtl32.DLL???
I am running Windows 7 with VS2012. TaskDialog was added in Vista so why don't I have the correct version of ComCtl32.DLL???
推荐答案
这是一个通用且有用的代码块,应该有助于加载正确的通用控件,comctl32.dll代码>:
Here's a common and useful block of code that should help to load the correct common controls, 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
这篇关于调用 TaskDialogIndirect 加载程序说找不到序号 345的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!