載入dll時..變數宣告 |
答題得分者是:cmf
|
yoyo12345
一般會員 發表:33 回覆:77 積分:22 註冊:2003-03-19 發送簡訊給我 |
|
william
版主 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
I think you cannot has shared variable in a dll implemented by Delphi/BCB. In fact, your host application and the dll have their own independent instance of memory storage. Perhaps you could make use of memory mapped file? Or simply export function to get set the variable in dll? Remember to use ShareMem when passing string...
|
cmf
尊榮會員 發表:84 回覆:918 積分:1032 註冊:2002-06-26 發送簡訊給我 |
|
yoyo12345
一般會員 發表:33 回覆:77 積分:22 註冊:2003-03-19 發送簡訊給我 |
|
cmf
尊榮會員 發表:84 回覆:918 積分:1032 註冊:2002-06-26 發送簡訊給我 |
To import routines from a dynamically loadable library (.so or .DLL), attach a directive of the form external stringConstant; to the end of a normal procedure or function header, where stringConstant is the name of the library file in single quotation marks.
------
︿︿ |
yoyo12345
一般會員 發表:33 回覆:77 積分:22 註冊:2003-03-19 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |