Just include windows.h instead. This allows building using the Express edition versions of MSVC as well, that don't include MFC.
Showing the changes to codec/decoder (1 of 3 files). Show all
Unified · Split
| @@ -7,7 +7,7 @@ · 6 unmodified lines | ||
| 7 | 7 | // |
| 8 | 8 | // Generated from the TEXTINCLUDE 2 resource. |
| 9 | 9 | // |
| 10 | −#include "afxres.h" | |
| 10 | +#include "windows.h" | |
| 11 | 11 | |
| 12 | 12 | ///////////////////////////////////////////////////////////////////////////// |
| 13 | 13 | #undef APSTUDIO_READONLY_SYMBOLS |
| @@ -34,7 +34,7 @@ END · 20 unmodified lines | ||
| 34 | 34 | |
| 35 | 35 | 2 TEXTINCLUDE |
| 36 | 36 | BEGIN |
| 37 | − "#include ""afxres.h""\r\n" | |
| 37 | + "#include ""windows.h""\r\n" | |
| 38 | 38 | "\0" |
| 39 | 39 | END |
| 40 | 40 | |