Menu

Problem with Resources

2002-12-15
2012-09-26
  • Nobody/Anonymous

    Do you have any problems with resources in DevCPP? I can't compile things like this:

    IDD_ABOUT DIALOG 19, 17, 182, 71
    STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
    CAPTION "About"
    FONT 8, "MS Sans Serif"
    BEGIN
            CTEXT         "AAA", 101, 17, 30, 81, 11
            GROUPBOX      "BBB", 102, 11, 11, 95, 48, WS_TABSTOP
            DEFPUSHBUTTON "&Ok", IDOK, 112, 6, 64, 14
            PUSHBUTTON    "&CCC", IDEMAIL, 112, 21, 64, 14
            PUSHBUTTON    "DDD", IDAZTEK, 112, 36, 64, 14
            PUSHBUTTON    "EEE", IDBSRF, 112, 51, 64, 14
    END

     
    • Nobody/Anonymous

      We kinda need an error message, obviously...

      Kip

       
    • Nobody/Anonymous

      I find the problem: if I don't write #include <windows.h> in resource file there is an error when using defines (like WS_POPUP).
      In main file is:
      #include <windows.h>
      #include "resource.h"
      In resource file:
      #include "resource.h"
      In VC++ it works i thinks, in Dev-C++ don't

       
    • Nobody/Anonymous

      error is "parsing error :line number" or something.
      I found the problem: error message is when i don't give #include <windows.h> in resource file. This is set in main.c file, so i think it shoudln't be in res file. Why it doesn't work?

       
    • Nobody/Anonymous

      error is "parse error: line number" or something.
      i found the error reason: it appears when i don't set #include <windows.h> in resource file. windows.h is included in main.cpp file, so why it doesn't work?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.