線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:2879
推到 Plurk!
推到 Facebook!

stdcall,safecall,cdecl

答題得分者是:aquarius
Leway
一般會員


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

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-04-14 09:46:00 IP:218.80.xxx.xxx 未訂閱
他們分別是何意義?何時使用.何區別? ======================================= 為學日益,為道日損,損之又損,以致於無。為無為,而無不為。
aquarius
資深會員


發表:3
回覆:347
積分:330
註冊:2003-05-21

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-04-14 11:00:23 IP:210.243.xxx.xxx 未訂閱
引言: 他們分別是何意義?何時使用.何區別? ======================================= 為學日益,為道日損,損之又損,以致於無。為無為,而無不為。
HELP 中說得很明白呀! 截錄一段如下:
The table below summarizes calling conventions.    Directive Parameter order  Clean-up        Passes parameters in registers?
========= =============== ========= ===============================
register  Left-to-right   Routine    Yes
pascal    Left-to-right   Routine    No
cdecl     Right-to-left   Caller     No
stdcall   Right-to-left   Routine    No
safecall  Right-to-left   Routine    No    The default register convention is the most efficient, since it usually avoids creation of a stack frame. (Access methods for published properties must use register.) The cdecl convention is useful when you call functions from DLLs written in C or C  , while stdcall and safecall are used for Windows API calls. The safecall convention must be used for declaring dual-interface methods. The pascal convention is maintained for backward compatibility. For more information on calling conventions, see Program control.
 
...Aquarius
------
水瓶男的blog: http://791909.blogspot.com
系統時間:2024-07-04 12:51:45
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!