試圖使用原始輸入特定的功能和結構的代碼::塊IDE使用MinGW的WINAPI,我得到了很多編譯器錯誤的失蹤功能和結構:C++ - WINAPI - 缺少原始輸入特定的函數和結構?
> ||In function 'void find_devices_input()':| |16|error:
> 'RAWINPUTDEVICELIST' was not declared in this scope| |16|error:
> 'GetRawInputDeviceList' was not declared in this scope| |19|error:
> 'list_devices_input' was not declared in this scope| |19|error:
> expected type-specifier before 'RAWINPUTDEVICELIST'| |19|error:
> expected ';' before 'RAWINPUTDEVICELIST'| |25|error: type '<type
> error>' argument given to 'delete', expected pointer| ||=== Build
> finished: 6 errors, 0 warnings (0 minutes, 0 seconds) ===|
爲什麼會出現這種情況,怎麼能這樣被修復?
我推薦使用[mingw-w64](http://mingw-w64.sourceforge.net/),而不必擔心這樣的東西。 –