首页 > 解决方案 > 使用 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 编译实用程序编译头文件?

标签: winapimingwmsys2stylus-pen

解决方案


推荐阅读