Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Insomniac on February 02, 2010, 02:15:30 am

Title: Resource Syntax Error
Post by: Insomniac on February 02, 2010, 02:15:30 am
I'm following this (http://www.winprog.org/tutorial/dialogs.html) tutorial, and I have this code:

Code
#include "resource.h"

IDR_MYMENU MENU
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "E&xit", ID_FILE_EXIT
    END

    POPUP "&Help"
    BEGIN
        MENUITEM "&About", ID_HELP_ABOUT
    END
END

IDI_MYICON ICON "cstrike.ico"

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 The Forger",
                    IDC_STATIC,16,18,144,33
END

However, on the line with STYLE, I'm getting "syntax error". The error is not very descriptive, so any help would be appreciated.
Title: Re: Resource Syntax Error
Post by: Jenna on February 02, 2010, 07:32:17 am
This is not related to Code::Blocks, thus violating our forum rules !

Topic locked !