使用RegOpenKeyEx 等windows注册函数时,编译无法解析问题
来源:互联网 发布:淘宝在哪看总消费金额 编辑:程序博客网 时间:2024/05/17 04:47
使用RegOpenKeyEx 等windows注册函数时,编译无法解析问题
error LNK2019: 无法解析的外部符号 __imp__RegQueryValueExW@24,该符号在函数 "private: static class QString __cdecl QextSerialEnumerator::getRegKeyValue(struct HKEY__ *,unsigned short const *)" (?getRegKeyValue@QextSerialEnumerator@@CA?AVQString@@PAUHKEY__@@PBG@Z) 中被引用
Qt中使用RegOpenKeyEx 等windows注册函数时,编译报以上错误,查MSDN的帮助文档,使用RegOpenKeyEx文档中说明如下:
Requirements
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Winreg.h; include Windows.h.
Library: Use Advapi32.lib.
pro文件中添加LIBS += -lAdvapi32 注意头文件.h 中要添加#include <qt_windows.h> 编译通过
1 0
- 使用RegOpenKeyEx 等windows注册函数时,编译无法解析问题
- VS2017 使用RegOpenKeyEx()函数return 5 解决方案
- windows下 vim 使用Taglist无法显示函数名等
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- Windows API一日一练(63)RegOpenKeyEx和RegCreateKeyEx函数
- hdu1312 深搜 java
- Qtcreator 程序添加版本信息
- libsvm 训练后的模型参数讲解
- Android 5.1长按电源键添加重启功能
- android静态创建和动态创建下拉列表
- 使用RegOpenKeyEx 等windows注册函数时,编译无法解析问题
- swift 设置贯穿导航条的页面背景图片
- jQuery 实现图片剪切(裁剪)效果(慕课网:用JavaScript实现图片剪切(裁剪)效果)
- 【转】C++ vector的使用
- formattable as an htmlwidget
- cocos阻挡层
- JDK8+Tomcat8配置https
- android 流布局LinearLayout
- 测试覆盖与测试工作量关系问题的思考