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

錯誤訊息:"無法找到程序輸入點.....(在動態連結程式庫 XX.bpl)"

尚未結案
a_mi
一般會員


發表:43
回覆:43
積分:22
註冊:2003-12-07

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-04-22 17:56:26 IP:61.62.xxx.xxx 未訂閱
我在我的package裡定義了以下的動態陣列 [code] type //定義一個struct TStoreData = record No: String; Name: String; end; StoreList: array of TStoreData;//宣告一個動態陣列 Procedure TvarForm.SetStroeList(sCount: Integer); //設定陣列 begin Getmem(StoreList, sizeof(StoreList) *sCount); end; [code] compile 都正常,但在執行時就出現了錯誤訊息 是我動態陣列宣告有問題嗎 = =?
jest0024
高階會員


發表:11
回覆:310
積分:224
註冊:2002-11-24

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-04-22 19:15:33 IP:203.67.xxx.xxx 未訂閱
引言: 我在我的package裡定義了以下的動態陣列 [code] type //定義一個struct TStoreData = record No: String; Name: String; end; StoreList: array of TStoreData;//宣告一個動態陣列 Procedure TvarForm.SetStroeList(sCount: Integer); //設定陣列 begin Getmem(StoreList, sizeof(StoreList) *sCount); end; [code] compile 都正常,但在執行時就出現了錯誤訊息 是我動態陣列宣告有問題嗎 = =?
指定資料? Pointer(StoreList[i].No):=nil; StoreList[i].No:=String......; 想買台TPC..TTAB-B12D
Mickey
版主


發表:77
回覆:1882
積分:1390
註冊:2002-12-11

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-04-22 21:03:20 IP:218.32.xxx.xxx 未訂閱
引言: 我在我的package裡定義了以下的動態陣列
  type //定義一個struct
    TStoreData = record
      No:    String;
      Name:  String;
    end;    StoreList: array of TStoreData;//宣告一個動態陣列    Procedure TvarForm.SetStroeList(sCount: Integer); //設定陣列
begin
    Getmem(StoreList, sizeof(TStoreData) *sCount);
end;
compile 都正常,但在執行時就出現了錯誤訊息 是我動態陣列宣告有問題嗎 = =?
GetMem....為何不用 SetLength(StoreList,sCount) ? 發表人 - Mickey 於 2004/04/22 21:04:01
a_mi
一般會員


發表:43
回覆:43
積分:22
註冊:2003-12-07

發送簡訊給我
#4 引用回覆 回覆 發表時間:2004-04-23 09:17:26 IP:61.62.xxx.xxx 未訂閱
引言: 指定資料? Pointer(StoreList[i].No):=nil; StoreList[i].No:=String......; 想買台TPC..TTAB-B12D
不是,是當這個package被載入時會有"無法找到程序輸入點.....(在動態連結程式庫 XX.bpl)"
a_mi
一般會員


發表:43
回覆:43
積分:22
註冊:2003-12-07

發送簡訊給我
#5 引用回覆 回覆 發表時間:2004-04-23 09:21:32 IP:61.62.xxx.xxx 未訂閱
引言: GetMem....為何不用 SetLength(StoreList,sCount) ? 發表人 - Mickey 於 2004/04/22 21:04:01
因為我是第一次用動態陣列..所以先抓一個sample來玩
a_mi
一般會員


發表:43
回覆:43
積分:22
註冊:2003-12-07

發送簡訊給我
#6 引用回覆 回覆 發表時間:2004-04-23 10:01:37 IP:61.62.xxx.xxx 未訂閱
唔..我找到問題發生點了    Procedure TvarForm.SetStroeList(sCount: Integer); //設定陣列 begin Getmem(StoreList, sizeof(StoreList) *sCount); end;    當我的主程式在呼叫這個procedure時..compile會過,但在實際在執行程式時, 程式初始化時就會發生錯誤< >,但是如果把該行呼叫的程式碼 >..唔..不會是 > 發表人 - >< >< >< >< > 謝謝你們的回答< > 發表人 -
a_mi
一般會員


發表:43
回覆:43
積分:22
註冊:2003-12-07

發送簡訊給我
#7 引用回覆 回覆 發表時間:2004-04-25 13:05:50 IP:61.216.xxx.xxx 未訂閱
引言: 我在我的package裡定義了以下的動態陣列
  type //定義一個struct
    TStoreData = record
      No:    String;
      Name:  String;
    end;    StoreList: array of TStoreData;//宣告一個動態陣列    Procedure TvarForm.SetStroeList(sCount: Integer); //設定陣列
begin
    Getmem(StoreList, sizeof(StoreList) *sCount);
end;
compile 都正常,但在執行時就出現了錯誤訊息 是我動態陣列宣告有問題嗎 = =?
系統時間:2024-05-17 16:48:19
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!