rc file problem

Hi, I have a problem with rc files, expected unqualified-id before numeric constant, I'd appreciate some help. This is the code.

cpp file

#include <iostream>
#include <windows.h>

#include "resource.h"

//...

resource.h

#ifndef _RESOURCE_H_
#define _RESOURCE_H_

#define IDD_ABOUT 232
#include "resources.rc"

#endif // _RESOURCE_H_

resources.rc

#ifndef _RESOURCES_RC_
#define _RESOURCES_RC_

#include <windows.h>
#include "resource.h"

/*Error here */ IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "My About Box"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "&OK",IDOK,174,18,50,14
PUSHBUTTON "&Cancel",IDCANCEL,174,35,50,14
GROUPBOX "About this program...",IDC_STATIC,7,7,225,52
CTEXT "An example program showing how to use Dialog Boxes\r\n\r\nby theForger",
IDC_STATIC,16,18,144,33
END

#endif //_RESOURCES_RC_

Thanks
Last edited on
hello,
remove #include "resources.rc" from your resource.h
then it should be fixed
Ty for your answer, it worked :D
Topic archived. No new replies allowed.