VS2008 problems with ressource editor
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: VS2008 problems with ressource editor

  1. #1
    Join Date
    Jul 2004
    Posts
    48

    VS2008 problems with ressource editor

    Hello,

    I have a project with 2 destination platforms (Win32 and ARM). Until now everything worked fine.
    Now there is a problem when I change a dialog in the ressource editor.
    When I create a simple frame with some buttons for Win32 platform, it generates following code:
    Code:
    IDD_GUI_DIALOG DIALOGEX 0, 0, 190, 111
    STYLE DS_SETFONT | WS_POPUP | WS_VISIBLE
    EXSTYLE WS_EX_APPWINDOW | 0x80000000L
    FONT 12, "Arial", 0, 0, 0x0
    BEGIN
        DEFPUSHBUTTON   "Ende",IDC_BUTTON_ENDE,138,78,40,17
        PUSHBUTTON      "Button1",IDC_BUTTON1,47,0,26,111
    END
    When I change destiantion platform to ARM and make some changes in the dialog, the following code will be generated in Gui.rc:
    Code:
    IDD_GUI_DIALOG DIALOG  0, 0, 190, 111
    STYLE DS_SETFONT | WS_POPUP | WS_VISIBLE
    EXSTYLE WS_EX_APPWINDOW | 0x80000000L
    FONT 12, "Arial"
    BEGIN
        DEFPUSHBUTTON   "Ende",IDC_BUTTON_ENDE,138,78,40,17
        PUSHBUTTON      "Button1",IDC_BUTTON1,47,0,26,111
    END
    The problem is, when the last dialog change was made for Win32 platform. I change it to ARM and want to compile, I get compiling errors:
    Code:
    1>.\Gui.rc(77) : error RC2112 : BEGIN expected in dialog
    1>.\Gui.rc(77) : error RC2135 : file not found: 0x0
    1>.\Gui.rc(79) : error RC2135 : file not found: Ende
    1>.\Gui.rc(80) : error RC2135 : file not found: Button1
    1>.\Gui.rc(89) : error RC2135 : file not found: 1
    1>.\Gui.rc(90) : error RC2135 : file not found: 1
    1>.\Gui.rc(91) : error RC2135 : file not found: 1
    1>.\Gui.rc(92) : error RC2135 : file not found: 0x3fL
    1>.\Gui.rc(98) : error RC2135 : file not found: FILEOS
    1>.\Gui.rc(99) : error RC2135 : file not found: 0x1L
    1>.\Gui.rc(102) : error RC2164 : unexpected value in RCDATA
    1>.\Gui.rc(104) : error RC2135 : file not found: BLOCK
    1>.\Gui.rc(106) : error RC2135 : file not found: VALUE
    When I delete the last 3 parameters of the FONT keyword, then it works again. But I can't change always manually all parameters for changed dialogs when changing destination platform.
    Also a #ifdef can't be used in this file because it will be always new generated and deleted.

    Can someone tell me what I could/should do?

    Another difference ist the parameter DIALOGEX / DIALOG for keyword IDD_GUI_DIALOG. It causes no errors but what is there exactly the difference?


    Thanks a lot in advance,

    Andy

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,360

    Re: VS2008 problems with ressource editor

    Victor Nijegorodov

  3. #3
    Join Date
    Jul 2004
    Posts
    48

    Re: VS2008 problems with ressource editor

    OK, thats the difference but how could this help me?
    Where are the FONT parameters?
    Can I change the used Template everywhere for used destination platform?

    Best regards, Andy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center