Windows资源(.rc)文件中的语法错误

时间:2014-11-03 12:21:17

标签: windows syntax-error resource-files rc

我的文件包有问题,包括main.rc.我从未使用过rc文件,但我必须为我的一个朋友解决问题。这是我的“main.rc”:

#include <windows.h>

#ifdef GCC_WINDRES
  VS_VERSION_INFO       VERSIONINFO
#else
  VS_VERSION_INFO       VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
#endif

FILEVERSION     1,1,0,0
PRODUCTVERSION  1,1,0,0
FILEFLAGSMASK       VS_FFI_FILEFLAGSMASK

#ifdef _DEBUG
  FILEFLAGS     1
#else
  FILEFLAGS     0
#endif

FILEOS      VOS_DOS_WINDOWS32
FILETYPE        VFT_DLL
FILESUBTYPE     0   // not used

BEGIN
  BLOCK "StringFileInfo"
  BEGIN
    BLOCK "040904E4"
    //language ID = U.S. English, char set = Windows, Multilingual
    BEGIN
      VALUE "FileDescription",  "myProtectoR\0"
      VALUE "FileVersion",  "1.1.0.0\0"
      VALUE "InternalName", "myprotector.exe\0"
      VALUE "LegalCopyright",   "(C) 2010-2011 Roberto Rossi\0"
      VALUE "OriginalFilename", "myprotector.exe\0"
      VALUE "ProductName",  "myProtectoR\0"
      VALUE "ProductVersion",   "1.1.0.0\0"
      VALUE "Comments","myProtectoR by Roberto Rossi (http://www.redchar.net)\0"
    END
  END
  BLOCK "VarFileInfo"
  BEGIN
    VALUE "Translation", 0x0409, 1252
  END
END

我在第6行得到了“语法错误”(不是那么具体呃?),但我不知道为什么。任何人都可以帮助我吗?

0 个答案:

没有答案