views:

31

answers:

1

hello, i try to compile an old project using VS express 2010 and i get the error:

1>terrain2.rc(10): fatal error RC1015: cannot open include file 'afxres.h'. from this code

/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

i have installed windows SDK already, but without any success.

thanks!

+2  A: 

This header is a part of the MFC Library. VS Express edition doesn't contain MFC. If your project doesn't use MFC you can safely replace afxres.h with windows.h in your terrain2.rc.

Kirill V. Lyadvinsky
thanks, then i get the error: error RC2104: undefined keyword or key name: IDC_STATIC
clamp
@clamp: that sounds like a Common Control definition. try adding #include <Commctrl.h> as well (and link your program to Comctl32.lib)
Default