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

本文介绍了一种常见的资源编译器错误RC1004及其解决方案,该错误通常出现在Visual C++项目的资源文件中,原因是文件最后一行缺少必要的换行符。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by MediaPlayer.rc

#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_MEDIAPLAYER_DIALOG          102
#define IDR_MAINFRAME                   128
#define IDB_BITMAP_BKGROUND             129
#define IDR_MENU_MAIN                   134
#define IDR_MENU1                       135
#define IDC_BUTTON_OPEN                 1000
#define IDC_BUTTON_PLAY                 1001
#define IDC_BUTTON_PAUSE                1002
#define IDC_BUTTON_STOP                 1003
#define IDC_SLIDER_PLAY                 1004
#define IDC_SLIDER_VOLUME               1005
#define IDC_BUTTON_GRASP                1006
#define IDC_BUTTON_EXIT                 1007
#define IDC_VIDEO_WINDOW                1008
#define ID_MENU_OPENFILE                32771
#define ID_MENU_CLOSEFILE               32772
#define ID_MENU_PLAY                    32773
#define ID_MENU_STOP                    32774
#define ID_Menu                         32775
#define ID_MENU_NORMALRATE              32776
#define ID_MENU_HALFRATE                32777
#define ID_MENU_DOUBLERATE              32778
#define ID_MENU_GRABIMAGE               32779
#define ID_MENU_FULLSCREEN              32780
#define ID_MENU_MUTE                    32781
#define ID_MENU_ALWAYSONTOP             32782
#define ID_MENU_SAVEGRAPH               32783
#define ID_MENU_EXIT                    32784

// Next default values for new objects
 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        136
#define _APS_NEXT_COMMAND_VALUE         32786
#define _APS_NEXT_CONTROL_VALUE         1010
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

编译的时候出现

错误 1 error RC1004: unexpected end of file found C:\Documents and Settings\lmh\桌面\Player\MediaPlayer\resource.h 46 1 Play

的错误提示。
资源编译器错误 RC1004 错误消息 遇到意外的文件结束

此错误是由于文本文件的最后一行中缺少换行符和回车符而造成的

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值