Code:
#include ”main.h”
#include<winresrc.h>
....
IDR_MAINMENU MENU DISCARDABLE
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&New", ID_FILE_NEW
MENUITEM "&Open...", ID_FILE_OPEN
MENUITEM "Save &As...", ID_FILE_SAVEAS, GRAYED
MENUITEM SEPARATOR
MENUITEM "&Close", ID_FILE_CLOSE, GRAYED
MENUITEM SEPARATOR
MENUITEM "E&xit", ID_FILE_EXIT
END
POPUP "&Edit", GRAYED
BEGIN
MENUITEM "C&ut", ID_EDIT_CUT
MENUITEM "&Copy", ID_EDIT_COPY
MENUITEM "&Paste", ID_EDIT_PASTE
END
POPUP "&Window", GRAYED
BEGIN
MENUITEM "&Tile", ID_WINDOW_TILE
MENUITEM "&Cascade", ID_WINDOW_CASCADE
END
POPUP "&BitMap"
BEGIN
MENUITEM "&NewBitMap", ID_FILE_NEWBITMAP
MENUITEM "&OpenBitMap...", ID_FILE_OPENBITMAP
MENUITEM "Save &As...", ID_FILE_SAVEASBITMAP
MENUITEM SEPARATOR
MENUITEM "&CloseBitMap", ID_FILE_CLOSEBITMAP
MENUITEM SEPARATOR
MENUITEM "E&xit", ID_FILE_EXIT
END
END
....
Here is where the prob is....
IDD_BitMap DIALOG DISCARDABLE 0, 0, 50, 50
STYLE DS_MODALFRAME | DS_CENTER | WS_CHILD | WS_VISIBLE
CAPTION “BitMap Editor”
FONT 8, "MS Sans Serif"
BEGIN
LTEXT "Brush:",IDC_STATIC,25,25,20,14
more below that are different just pasted more of the same for this thread as example only but each one gets an error if I comment it out
LTEXT "Brush:",IDC_STATIC,25,25,20,14
LTEXT "Brush:",IDC_STATIC,25,25,20,14
....
More of these that get the same error after the above is comment out
EDITTEXT IDC_NUMBER,40,265,20,12,ES_AUTOHSCROLL | ES_NUMBER
LISTBOX IDC_LIST,7,25,138,106,LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "&Add",IDC_ADD,150,30,50,14
PUSHBUTTON "&Remove",IDC_REMOVE,150,47,50,14
PUSHBUTTON "&Clear",IDC_CLEAR,150,63,50,14
GROUPBOX....
CTEXT....
END
that was only one of several dialog boxes. Comment out error line and it just moves on the the next STYLE and give error then Caption then font then ltext . If type casting them is the error to what?