Hi, I'm using Visual C++ 2008 Express edition, and I was using a separate resource editor (it doesn't include one). Anyway, when I try to compile the application with the resource file it gives me this:The problem isn't with the resource editor, as I've tried doing things manually as well. Here's what the resource file had in it (I know what's in it isn't the problem, as I've tried just using the last line of code which also turned up the same problem):Quote:
error C2059: syntax error : 'constant'
I haven't been able to find the answer anywhere else. Can anyone help me? Thanks.Code:// Generated by ResEdit 1.3.3
// Copyright (C) 2006
// http://www.resedit.net
#include <windows.h>
#include "resource.h"
IDD_DIALOG1 DIALOGEX 0,0,373,178
STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_FIXEDSYS | WS_VISIBLE | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU
CAPTION "Dialog"
FONT 8,"MS Shell Dlg 2",400,0,1
BEGIN
PUSHBUTTON "OK",IDAD,104,34,50,14,BS_DEFPUSHBUTTON
PUSHBUTTON "Cancel",IDCANCEL,160,33,50,14
EDITTEXT IDC_EDIT1,105,14,103,14,ES_AUTOHSCROLL
LTEXT "Static",IDC_STATIC,18,17,81,8
LTEXT "Static",IDC_STATIC,73,94,46,8
LTEXT "Static",IDC_STATIC,129,94,22,8
LTEXT "Static",IDC_STATIC,73,111,46,8
LTEXT "Static",IDC_STATIC,73,126,46,8
LTEXT "Static",IDC_STATIC,129,111,22,8
LTEXT "Static",IDC_STATIC,129,126,22,8
LTEXT "Static",IDC_STATIC,73,141,46,8
LTEXT "Static",IDC_STATIC,129,141,22,8
END
IDR_MENU1 MENU
BEGIN
POPUP ""
BEGIN
END
POPUP "File"
BEGIN
MENUITEM "Set New Goal",IDM_SET_NEW_GOAL
MENUITEM SEPARATOR
MENUITEM "Exit",IDM_EXIT2
END
POPUP ""
BEGIN
END
POPUP "Help"
BEGIN
MENUITEM "About",IDM_ABOUT
END
END
IDI_ICON1 ICON "money.ico"
BTW when I double click on the error message it goes to the first line of the code, here:Code:IDD_DIALOG1 DIALOGEX 0,0,373,178