做视频播放器时遇到的有关问题,大家帮忙解决一下吧~多谢了

做视频播放器时遇到的问题,大家帮忙解决一下吧~谢谢了

教材上说把以下代码插入到main.h中:
private: // User declarations
Graphics::TBitmap *bmpTitleAct;
Graphics::TBitmap *bmpTitleInact;
Graphics::TBitmap *bmpSysAct;
Graphics::TBitmap *bmpSysInact;
Graphics::TBitmap *bmpClose;
Graphics::TBitmap *bmpMinimize;
Graphics::TBitmap *bmpZoom;
Graphics::TBitmap *bmp_Inact; //标题栏
Graphics::TBitmap *bmpFormBK;
Graphics::TBitmap *bmpControlBarBK; //背景
Graphics::TBitmap *bmpControlPre;
Graphics::TBitmap *bmpControlPlay;
Graphics::TBitmap *bmpControlPause;
Graphics::TBitmap *bmpControlStop;
Graphics::TBitmap *bmpControlNext;
Graphics::TBitmap *bmpControlOpen; //控制按钮
Graphics::TBitmap *bmpTime0;
Graphics::TBitmap *bmpTime1;
Graphics::TBitmap *bmpTime2;
Graphics::TBitmap *bmpTime3;
Graphics::TBitmap *bmpTime4;
Graphics::TBitmap *bmpTime5;
Graphics::TBitmap *bmpTime6;
Graphics::TBitmap *bmpTime7;
Graphics::TBitmap *bmpTime8;
Graphics::TBitmap *bmpTime9;
Graphics::TBitmap *bmpTimeDot; //时间显示用到的数字图片
void __fastcall LoadBitmaps(); //从资源文件中读取图片
void __fastcall FreeBitmaps(); //程序结束时,释放资源
void __fastcall TFormMain::LoadBitmaps()
{
HBITMAP h;
// 窗体激活时的标题栏背景
bmpTitleAct = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"TITLE_ACTIVE");
bmpTitleAct->Handle = h;
//窗体不处于激活状态时的标题栏背景
bmpTitleInact = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"TITLE_INACTIVE");
bmpTitleInact->Handle = h;
// Active System Button
bmpSysAct = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"SYSTEM_ACITVE");
bmpSysAct->Handle = h;
// Inactive System Button
bmpSysInact = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"SYSTEM_INACTIVE");
bmpSysInact->Handle = h;
// 关闭按钮
bmpClose = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"CLOSE_ACTIVE");
bmpClose->Handle = h;
// 最小化按钮
bmpMinimize = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"MINIMIZE_ACTIVE");
bmpMinimize->Handle = h;
// 卷起按钮
bmpZoom = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"ZOOM_ACTIVE");
bmpZoom->Handle = h;
// Inactive Button
bmp_Inact = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"_INACTIVE");
bmp_Inact->Handle = h;
// 窗体背景
bmpFormBK = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"FORM_BACKGROUND");
bmpFormBK->Handle = h;
// 控制栏背景
bmpControlBarBK = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"CONTROLBAR_BACKGROUND");
bmpControlBarBK->Handle = h;
//绘制控制栏按钮 Btn Pre
bmpControlPre = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"CONTROLBAR_PRE");
bmpControlPre->Handle = h;
//Button Play
bmpControlPlay = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"CONTROLBAR_PLAY");
bmpControlPlay->Handle = h;
//Button Pause
bmpControlPause = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"CONTROLBAR_PAUSE");
bmpControlPause->Handle = h;
//Button Stop
bmpControlStop = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"CONTROLBAR_STOP");
bmpControlStop->Handle = h;
//Button Next
bmpControlNext = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"CONTROLBAR_NEXT");
bmpControlNext->Handle = h;
//Button Open
bmpControlOpen = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"CONTROLBAR_OPEN");
bmpControlOpen->Handle = h;
//LED数字位图 num 0
bmpTime0 = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"TIME_0");
bmpTime0->Handle = h;
// num 1
bmpTime1 = new Graphics::TBitmap();
h = LoadBitmap(HInstance,"TIME_1");
bmpTime1->Handle = h;
// num 2
bmpTime2 = new Graphics::TBitmap();