quard0314
一般會員
發表:10 回覆:18 積分:5 註冊:2003-03-05
發送簡訊給我
|
//--以下為Unit1.cpp檔 ,Unit1.h檔已include File1.cpp
#include
#pragma hdrstop
#include "Unit1.h" //---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
Image_process * Img_pc;
void __fastcall TForm1::MaskClick(TObject *Sender)
{
Image1->Picture->Bitmap->Assign(Img_pc->Mask1001(Image2->Picture->Bitmap)); //<---為何會有錯誤發生呢????
}
//---------以下為自行編輯的class----File1.cpp
lass Image_process
{
private :
public :
Graphics::TBitmap * gray_level(Graphics::TBitmap* );
Graphics::TBitmap* Binary_Value(Graphics::TBitmap* ,int);
Graphics::TBitmap* Mask1001(Graphics::TBitmap* );
};
//----灰階-------------------------------------------------------------
Graphics::TBitmap* Image_process::gray_level(Graphics::TBitmap* argBmp)
{
----//省略
}
//-------二值化--------------------------------------------------------
Graphics::TBitmap* Image_process::Binary_Value(Graphics::TBitmap* argBmp,int pos)
{
//省略---
}
//--------
Graphics::TBitmap * Mask1001(Graphics::TBitmap * argBmp )
{
------------
------------
------------ //程式碼部分
------------
------------
}
//-----
問題在於當我多令一個mask1001的function時則會發生以下的錯誤訊息
[Linker Error] Unresolved external 'Image_process::Mask1001(Graphics::TBitmap *)' referenced from D:\研究\0501\UNIT1.OBJ]
可是我呼叫gray_level 和 Binary_Value 並不會出現以上的問題
請問各位大大這是什麼原因呢~~~~><~~~~~~
麻煩各位替我解答一下我的疑惑
|
jessechan
版主
發表:109 回覆:394 積分:254 註冊:2002-04-05
發送簡訊給我
|
這一行
Graphics::TBitmap * Mask1001(Graphics::TBitmap * argBmp ) 寫錯了. Graphics::TBitmap * Image_process::Mask1001(Graphics::TBitmap * argBmp ) 才對, 粗心. Jesse Chan
------ Jesse Chan
|
quard0314
一般會員
發表:10 回覆:18 積分:5 註冊:2003-03-05
發送簡訊給我
|
哈哈...
感謝jessechan大大
原來是我自己耍笨...
真不好意思..
問題似乎解決了
可是我compiler出現一個問題
Unable to Creat process.
why??
|
jessechan
版主
發表:109 回覆:394 積分:254 註冊:2002-04-05
發送簡訊給我
|
我不會有這種 message, 可能其它地方出錯, 建議你再仔細檢查, 有問題再發問. Jesse Chan
------ Jesse Chan
|