全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1232
推到 Plurk!
推到 Facebook!

無法在bcb6底下run

答題得分者是:taishyang
student38
一般會員


發表:22
回覆:13
積分:7
註冊:2010-04-14

發送簡訊給我
#1 引用回覆 回覆 發表時間:2010-04-14 21:35:49 IP:120.114.xxx.xxx 訂閱
初學參考其他大大的webcam的範例 但是卻無法再bcb6底下跑 都會出現找不到EzCapCamera1->CameraDisplay();  這個錯誤 請問這是什麼問題@@

//-------------------------------------------------------------------------------------------------------------//
#include < vcl.h >
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package( smart_init )
#pragma link " EzCapCamera "
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
EzCapCamera1->CameraDisplay();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
EzCapCamera1->CameraClose();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button3Click(TObject *Sender)
{
EzCapCamera1->CapBmpPic("1.bmp");
}
//---------------------------------------------------------------------------
編輯記錄
student38 重新編輯於 2010-04-14 21:36:27, 註解 無‧
student38 重新編輯於 2010-04-15 17:01:07, 註解 無‧
student38 重新編輯於 2010-04-15 17:01:07, 註解 無‧
g9412747
初階會員


發表:3
回覆:28
積分:36
註冊:2009-02-25

發送簡訊給我
#2 引用回覆 回覆 發表時間:2010-04-15 13:32:17 IP:59.120.xxx.xxx 訂閱
能不能提供一下您範例的Code , 這樣比較好幫你找問題喔!
g9412747
初階會員


發表:3
回覆:28
積分:36
註冊:2009-02-25

發送簡訊給我
#3 引用回覆 回覆 發表時間:2010-04-16 11:29:53 IP:59.120.xxx.xxx 訂閱

===================引 用 student38 文 章===================
初學參考其他大大的webcam的範例 但是卻無法再bcb6底下跑 都會出現找不到EzCapCamera1->CameraDisplay();這個錯誤 請問這是什麼問題@@

//-------------------------------------------------------------------------------------------------------------//
#include < vcl.h >
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package( smart_init )
#pragma link " EzCapCamera "
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
EzCapCamera1->CameraDisplay();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
EzCapCamera1->CameraClose();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button3Click(TObject *Sender)
{
EzCapCamera1->CapBmpPic("1.bmp");
}
//---------------------------------------------------------------------------

你的 EzCapCamera.h 檔(可能是這個名稱) , 有設置在路徑中嗎?
如果沒有,請您至Mainmenu上方的Project -> Options -> Directories/Conditionals 裡的 include Path 項目中設置好此.h 檔的路徑位置!
試試看吧!有問題在提出!
taishyang
站務副站長


發表:377
回覆:5490
積分:4563
註冊:2002-10-08

發送簡訊給我
#4 引用回覆 回覆 發表時間:2010-04-16 15:00:52 IP:122.116.xxx.xxx 訂閱
該不會沒有安裝元件吧^^?
安裝後要把元件放到Form上
系統時間:2024-04-25 23:24:05
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!