1

WinAPI C ++プログラムを作成しようとしていますが、次のエラーが発生しています。

error: 'AW_SHOW' was not declared in this scope
error: 'AW_HIDE' was not declared in this scope
error: 'AW_BLEND' was not declared in this scope
error: 'AnimateWindow' was not declared in this scope
error: 'SW_MINIMISE' was not declared in this scope

:: AnimationWindowを使用してみましたが、同じエラーが発生します。これは私のヘッダーファイルで、windows.hの前にインクルードされています

#ifdef WINVER
#undef WINVER
#endif

#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif

#define WINVER 0x0500
#define _WIN32_WINNT 0x0500

また、varsを0x0502に設定し、AnimateWindow用にWinuser.hのプリプロセッサをコメントアウトしてみました。

4

1 に答える 1

0

それを理解しました。

エラーが発生していたファイルは私のmain.cppに含まれていましたが、main.cppのwindows.hの後に含まれていました。

于 2012-05-21T04:55:56.417 に答える