运行打开图片控件是总是提示unknown picture file extension(.)
北辰猫咪 2010-04-20 12:37:11 我用打开图片控件,运行的时候点取消时总是提示:unknown pictures file extension (.)
打开一个文件的时候不会有提示,但是点击取消的时候会有提示
这个问题怎么解决啊?请求高手们帮忙。。。
代码如下:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
opd->Execute();
img->Picture->LoadFromFile(opd->FileName);
}