Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 1st, 2004, 01:07 AM
Authorized User
 
Join Date: Mar 2004
Location: , , .
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Resource Script Errors

This is my first time using Resource files in MSVC++ and I am getting some compiler errors:

tutorial.rc(29): error RC2135 : file not found: ID_MENU
tutorial.rc(33): error RC2135 : file not found: MENUITEM
tutorial.rc(20): error RC2144 : PRIMARY LANGUAGE ID not a number
tutorial.rc(31): error RC2164 : unexpected value in RCDATA

Here is the resource file. It is kind of big:

Code:
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "tutorial.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

ID_MENU MENU DISCARDABLE
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&Start Smart Logger",         ID_FILE_START
        MENUITEM "Stop Smart Logger",           ID_FILE_STOP
        MENUITEM SEPARATOR
        MENUITEM "&Save",                       ID_FILE_SAVE
        MENUITEM "E&xit Smart Logger",          ID_FILE_EXIT
    END
    POPUP "&Choose Dave Card"
    BEGIN
        MENUITEM "&P3",                         ID_CHOOSEDAVE_P3LOG
        MENUITEM "&P4",                         ID_CHOOSEDAVE_P4LOG
        MENUITEM "&P5",                         ID_CHOOSEDAVE_P5LOG
    END
    POPUP "&Choose Charlie Card"
    BEGIN
        MENUITEM "&ROM2",                       ID_CHOOSECHARLIE_ROM02LOG
        MENUITEM "&ROM3",                       ID_CHOOSECHARLIE_ROM03LOG
        MENUITEM "&ROM10",                      ID_CHOOSECHARLIE_ROM10LOG
        MENUITEM "&ROM11",                      ID_CHOOSECHARLIE_ROM11LOG
    END
    POPUP "&Help"
    BEGIN
        MENUITEM "&About Smart Logger",         ID_HELP_ABOUT
    END
END


#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""tutorial.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_DIALOG1 DIALOGEX 0, 0, 232, 129
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | 
    WS_SYSMENU
CAPTION "Dialog"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,19,111,70,14
    PUSHBUTTON      "Cancel",IDCANCEL,128,111,73,14
    CONTROL         "Ins00",IDC_CHECK1,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,4,34,10
    CONTROL         "Ins02",IDC_CHECK2,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,17,34,10
    CONTROL         "Ins04",IDC_CHECK3,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,30,34,10
    CONTROL         "Ins06",IDC_CHECK4,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,43,34,10
    CONTROL         "Ins08",IDC_CHECK5,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,56,34,10
    CONTROL         "Ins0A",IDC_CHECK6,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,69,34,10
    CONTROL         "Ins0C",IDC_CHECK7,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,82,34,10
    CONTROL         "Ins0E",IDC_CHECK8,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,9,95,34,10
    CONTROL         "Ins10",IDC_CHECK9,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,45,4,34,10
    CONTROL         "Ins12",IDC_CHECK10,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,45,17,34,10
    CONTROL         "Ins14",IDC_CHECK11,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,45,30,34,10
    CONTROL         "Ins16",IDC_CHECK12,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,45,43,34,10
    CONTROL         "Ins18",IDC_CHECK13,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,45,56,34,10
    CONTROL         "Ins1A",IDC_CHECK14,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,45,69,34,10
    CONTROL         "Ins1C",IDC_CHECK15,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,45,82,34,10
    CONTROL         "Ins1E",IDC_CHECK16,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,45,95,34,10
    CONTROL         "Ins20",IDC_CHECK17,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,81,4,34,10
    CONTROL         "Ins22",IDC_CHECK18,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,81,17,34,10
    CONTROL         "Ins24",IDC_CHECK19,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,81,30,34,10
    CONTROL         "Ins26",IDC_CHECK20,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,81,43,34,10
    CONTROL         "Ins28",IDC_CHECK21,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,81,56,34,10
    CONTROL         "Ins2A",IDC_CHECK22,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,81,69,34,10
    CONTROL         "Ins2C",IDC_CHECK23,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,81,82,34,10
    CONTROL         "Ins2E",IDC_CHECK24,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,81,95,34,10
    CONTROL         "Ins30",IDC_CHECK25,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,117,4,34,10
    CONTROL         "Ins32",IDC_CHECK26,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,117,17,34,10
    CONTROL         "Ins34",IDC_CHECK27,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,117,30,34,10
    CONTROL         "Ins36",IDC_CHECK28,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,117,43,34,10
    CONTROL         "Ins38",IDC_CHECK29,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,117,56,34,10
    CONTROL         "Ins3A",IDC_CHECK30,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,117,69,34,10
    CONTROL         "Ins3C",IDC_CHECK31,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,117,82,34,10
    CONTROL         "Ins3E",IDC_CHECK32,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,117,95,34,10
    CONTROL         "Ins40",IDC_CHECK33,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,153,4,34,10
    CONTROL         "Ins42",IDC_CHECK34,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,153,17,34,10
    CONTROL         "Ins44",IDC_CHECK35,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,153,30,34,10
    CONTROL         "Ins46",IDC_CHECK36,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,153,43,34,10
    CONTROL         "Ins48",IDC_CHECK37,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,153,56,34,10
    CONTROL         "Ins4A",IDC_CHECK38,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,153,69,34,10
    CONTROL         "Ins4C",IDC_CHECK39,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,153,82,34,10
    CONTROL         "Ins4E",IDC_CHECK40,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,153,95,34,10
    CONTROL         "Ins50",IDC_CHECK41,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,189,4,34,10
    CONTROL         "Ins52",IDC_CHECK42,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,189,17,34,10
    CONTROL         "Ins54",IDC_CHECK43,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,189,30,34,10
    CONTROL         "Ins56",IDC_CHECK44,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,189,43,34,10
    CONTROL         "Ins58",IDC_CHECK45,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,189,56,34,10
    CONTROL         "Ins5A",IDC_CHECK46,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,189,69,34,10
    CONTROL         "Ins5C",IDC_CHECK47,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,189,82,34,10
    CONTROL         "Ins5E",IDC_CHECK48,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,189,95,34,10
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_DIALOG1, DIALOG
    BEGIN
        BOTTOMMARGIN, 128
    END
END
#endif    // APSTUDIO_INVOKED

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED
Thanks

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
handling script errors using vb web browser state Beginning VB 6 3 January 19th, 2006 09:01 AM
Can't get errors to display with <html:errors> michaeldill JSP Basics 0 August 2nd, 2004 02:47 PM
Script to upload text file to SQL with errors ss2003 Beginning PHP 2 March 10th, 2004 12:00 PM
Errors Errors DB Errors Ljhopkins VS.NET 2002/2003 0 July 15th, 2003 01:42 PM
Call and run CGI script from a PHP script ... how? dbruins BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 June 10th, 2003 04:09 PM



All times are GMT -4. The time now is 10:33 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.