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

LoadLibrary 時直接跳出dll裡的form

尚未結案
raistlinmiao
一般會員


發表:17
回覆:20
積分:12
註冊:2004-10-22

發送簡訊給我
#1 引用回覆 回覆 發表時間:2007-06-20 13:13:00 IP:163.28.xxx.xxx 訂閱
請問我如果照這篇的bigdogchina版主的說法

http://delphi.ktop.com.tw/board.php?cid=168&fid=912&tid=32684

做了一個dll裡面有個form 供程式載入

不過我想在載入程式 LoadLibrary (dll.dll)的時候就直接把dll裡的form顯示出來

請問該怎麼做
shunchia63
高階會員


發表:26
回覆:141
積分:198
註冊:2007-05-22

發送簡訊給我
#2 引用回覆 回覆 發表時間:2007-06-23 00:31:32 IP:61.64.xxx.xxx 訂閱
Points to a procedure invoked by a DLL entry point.
Unit
System
Category
miscellaneous routines
var DLLProc: Pointer;
Description
DLLProc is used to specify a procedure that is invoked every time a DLL's entry point is called. A procedure assigned to DLLProc must take one parameter of type Integerint. For example,
procedure LibraryProc(Reason: Integer);
When the procedure is invoked, this single parameter contains a value between 0 and 3 as defined by the following group of constants in the Windows unit:
const
DLL_PROCESS_DETACH = 0;
DLL_PROCESS_ATTACH = 1;
DLL_THREAD_ATTACH = 2;
DLL_THREAD_DETACH = 3;

For further details on the meaning of these constants, refer to the description of the DllEntryPoint function in the Win32 API online help.
Note: DLL_PROCESS_ATTACH is passed to the procedure only if the DLL旧 initialization code calls the procedure and specifies DLL_PROCESS_ATTACH as a parameter.



依Help 說明
看起來可以有機會LoadLib 時作動作

系統時間:2024-04-24 3:54:22
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!