winapi - 使用 RTSCom / Windows Pen API 和 mingw 应用程序编译应用程序
问题描述
我正在开发一个 GTK+ 笔记应用程序,它大量使用手写笔作为输入。GTK+ 中的手写笔支持在 Windows 上非常糟糕。(即仅检测到 Wacom 笔,不包括 Surface 设备)。我目前正在尝试将 Windows SDK 中的 Windows Pen API 集成到应用程序中,但由于头文件似乎与 mingw 不兼容,因此编译应用程序失败。
我已成功将 g++ 与 中的头文件链接起来C/Program Files (x86)/Windows Kits/10/Include
,但出现各种错误。
例如:
C:/Program Files (x86)/Windows Kits/10/Include/10.0.17763.0/shared/wtypes.h:745:26: error: pasting "/" and "/" does not give a valid preprocessing token
745 | #define _VARIANT_BOOL /##/
是否有任何简单的修复或我需要使用 windows 编译实用程序编译头文件?
解决方案
推荐阅读
- oauth-2.0 - 似乎无法让 SQUARE oauth2 授权加载
- java - 如何使我的数据库的 testdata 函数更快?
- javascript - 如何将 div 滚动到顶部或左侧以查看动态创建的元素?
- html - 如何让信息表和图像在同一行对齐
- java - 如何在 Wildfly 的 managedConnectionReconnected() 中修复 Unchecked throwable?
- c++ - boost beast Websocket 多请求服务器/客户端并不是真正的多
- python - 使用 Python 获取 Outlook 日历
- python - 将行从一列移动到另一列以及 pandas DataFrame 中的相应值
- javascript - 如何自定义单选按钮和复选框
- reactjs - ReactJS 中的正则表达式时间字段验证失败