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

Creating DLLs in C++Builder

 
GrandRURU
站務副站長


發表:240
回覆:1680
積分:1874
註冊:2005-06-21

發送簡訊給我
#1 引用回覆 回覆 發表時間:2016-10-14 08:44:12 IP:59.120.xxx.xxx 未訂閱
Creating DLLs in C++Builder is the same as in standard C++:
  1. Choose
  2. If you want the DLL to be multi-threaded, check the Multi-threaded option.
  3. Click OK.
Exported functions in the code should be identified with the __declspec(dllexport) modifier as they must be in Embarcadero C or Microsoft Visual C .
For example, the following code is legal in C Builder and other Windows C compilers:
In the code above, the function changeValue is exported, and therefore made available to calling applications. The functions dblValue and halfValue are internal, and cannot be called from outside of the DLL.
Additional information on creating DLLs can be found in the Win32 MSDK Reference.

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