大家好:
我要使用EVISION的ROI功能,可是再執行的時候會產生一個LINK ERROR的問題,請大家幫忙。 程式碼如下:
#include
#pragma hdrstop
#include "Unit1.h"
#include "EImage.h"
#include "Easy.h"
#pragma package(smart_init)
#pragma resource "*.dfm" public:
EImageBW8 EBW8Image1;
enum IMAGE_FILE_TYPES eFileFormat;
EROIBW8 EBW8Image1Roi1; void __fastcall TForm1::Open1Click(TObject *Sender)
{
if(OpenPictureDialog1->Execute())
{
eFileFormat =EBW8Image1.Load(OpenPictureDialog1->FileName.c_str());
EBW8Image1Roi1.Attach(&EBW8Image1);
EBW8Image1Roi1.SetPlacement(EBW8Image1.GetWidth() / 4, EBW8Image1.GetHeight() / 4,
EBW8Image1.GetWidth() / 2, EBW8Image1.GetHeight() / 2);
Invalidate();
} }
//---------------------------------------------------------------------------
void __fastcall TForm1::FormPaint(TObject *Sender)
{
// Draw the image
EBW8Image1.Draw(Canvas->Handle);
//Draw the ROI
EBW8Image1Roi1.DrawFrame(Canvas->Handle, E_FRAME_ON, TRUE);
} -----------------------------------------------------------------------------
這樣執行的話他會出現
[Linker Error] Unresolved external 'EGenericROI::DrawFrame(void *, E_FRAME_POSITION, int, float, float, float, float)' referenced from C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\桌面\定位\UNIT1.OBJ
請大家幫忙解決,謝謝。