关于使用图元类TMetaFile的连接错误
我想使用图元类TMetaFile与图元画布类TMetaFileCanvas进行图形的操作,使用的是TMetaFileCanvas帮助说明中的一小段程序,但编译时出现如下的错误提示:请教各位朋友,这是什么原因?
[Linker Error] Unresolved external '__fastcall Graphics::TMetafileCanvas::TMetafileCanvas(Graphics::TMetafile *, int)' referenced from D:\BORLAND\CBUILDER5\LIB\RELEASE\VCLE50.LIB|_t_Graph
下面是程序的代码:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
TMetafile *pMetafile = new TMetafile;
TMetafileCanvas *pCanvas = new TMetafileCanvas(pMetafile, 0);
pCanvas->Brush->Color = clRed;
pCanvas->Ellipse(0,0,100,100);
delete pCanvas;
Form1->Canvas->Draw(0,0,pMetafile); }