IT忘備録・メモ書きと日記 IT、ネット、プログラミングなどの忘備録、メモ書きが中心です。あと日記も少々です。もしかしたら皆さんのお役に立てる情報があるかもしれません(`・ω・´) Visual C++ 2008 Express Editionでwin32APIのGUIプログラミングを書いていたのですが、リソースファイルに#include "afxres.h"という記述を書いてビルドした時に下のようなコンパイルエラーが発生しました。 fatal error RC1015: cannot open include file 'afxres.h' このエラーの解決策は#include "afxres.h"を削除して下の二行を追記する事です。 //#include "afxres.h" #include <windows.h> #define IDC_STATIC -1 これでエラーが出ずにビル