fatal error RC1004: unexpected end of file found处理方法

资源文件.rc的代码如下:
// {{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by SpriteSonar01.rc
//
#define IDD_ABOUTBOX                    100
#define IDR_MAINFRAME                   128
#define IDR_SPRITETYPE                  129
#define IDD_SONAR_CTRL                  130
#define IDD_DIALOG_ACCESS               132
#define IDC_COMBO_RANGE                 1001
#define IDC_COMBO_FREQ                  1002
#define IDC_COMBO_SECTOR                1004
#define IDC_COMBO_MODEL                 1005
#define IDC_COMBO_COMMPORT              1007
#define IDC_COMBO_COMMBAUD              1008
#define IDC_COMBO_COMMPORT2             1009
#define IDC_TREE_RECEIVEDATA            1010
#define IDC_BUTTON_DELETE               1011
#define IDC_BUTTON_TEST                 1012
#define IDC_COMBO_COMMBAUD2             1013
#define IDC_SLIDER1                     1014
#define IDC_BUTTON_TEST2                1019
#define IDC_BUTTON_TEST3                1020
#define IDC_BUTTON_TEST4                1021
#define IDC_BUTTON_TEST5                1022
#define IDC_SHUT_COMM                   1023
#define IDC_OPEN_COMM                   1024
#define IDC_SHUT_COMM2                  1025
#define IDC_BUTTON_OPENACCESS           1025
#define IDC_OPEN_COMM2                  1026
#define IDC_DELETE_ACCESSRECORD         1027
#define IDC_MSFLEXGRID1                 1027
#define IDC_EDIT_Compass                1028
#define IDC_EDIT_XINCLINATION           1029
#define IDC_EDIT_YINCLINATION           1030
#define IDC_EDIT_SCANLINEANGLE          1031
#define IDC_EDIT_PRESSURE               1032
#define ID_COMMPORT_1                   32771
#define ID_COMMPORT_2                   32772
#define ID_COMMPORT_3                   32773
#define ID_COMMBAUD_9600                32774
#define ID_COMMBAUD_19200               32775
#define ID_COMMBAUD_56000               32776
#define ID_COMMBAUD_115200              32777
#define ID_SONAR_GAIN                   32778
#define ID_SONARRANGE_100               32779
#define ID_SONARRANGE_80                32780
#define ID_SONARRANGE_50                32781
#define ID_SONARRANGE_30                32782
#define ID_SONARRANGE_20                32783
#define ID_SONARRANGE_10                32784
#define ID_SONARRANGE_5                 32785
#define ID_SONARFREQ                    32787
#define ID_SONARSECTOR_360              32788
#define ID_SONARSECTOR_180              32789
#define ID_SONARSECTOR_135              32790
#define ID_SONARSECTOR_90               32791
#define ID_SONARMODEL_NORMAL            32792
#define ID_SONARMODEL_HISPEED           32793
#define ID_SONARMODEL_HIRES             32794

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_3D_CONTROLS                     1
#define _APS_NEXT_RESOURCE_VALUE        135
#define _APS_NEXT_COMMAND_VALUE         32795
#define _APS_NEXT_CONTROL_VALUE         1028
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif
编译的时候出现“F:\Experiments & codes\水下机器人\声纳\SpriteSonar011106\resource.h(72) : fatal error RC1004: unexpected end of file found”的错误提示。
资源编译器错误 RC1004 错误消息 遇到意外的文件结束 此错误是由于文本文件的最后一行中缺少换行符和回车符而造成的。

你可能感兴趣的:(fatal error RC1004: unexpected end of file found处理方法)