1 / 23

如何建立一個 COM 元件

如何建立一個 COM 元件. 井民全. Microsoft Virtual C++. 2. 1. 選擇 ATL Com AppWizard 鍵入 你的 dll 程式 name. ATL COM App Wizard Step1. 1. 2. 新增一個 ATL 物件. 按右鍵 選擇 [ New ATL Object]. 控制項的選擇. 1. 2. 選擇 Full Control. 填入 shortname. 1. 2. My com 物件. 新的 ATL 物件. 程式對外的介面. 物件的建構子. 1. 2.

gezana
Download Presentation

如何建立一個 COM 元件

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 如何建立一個COM元件 井民全

  2. Microsoft Virtual C++ 2 1 • 選擇 ATL Com AppWizard • 鍵入 你的 dll 程式name

  3. ATL COM App Wizard Step1

  4. 1 2 新增一個ATL 物件 • 按右鍵 • 選擇 [New ATL Object]

  5. 控制項的選擇 1 2 選擇 Full Control

  6. 填入shortname 1 2

  7. My com 物件 新的ATL物件 程式對外的介面 物件的建構子

  8. 1 2 如何新增一個資料成員? • 右鍵 • 選擇[新增資料成員]

  9. 如何新增一個資料成員? • 成員的資料型態 • 資料成員name • 資料成員的屬性 1 2 3

  10. 如何新增一個interface • 選IMyCom介面 • 右鍵新增Method 1 2

  11. 填入必要的參數 1 2 3

  12. 撰寫你的Code

  13. 驗證你的元件

  14. Microsoft Visual Basic 設定 • 選 Project • 選新增Component 1 2

  15. 選擇我們的元件

  16. 使用元件 • 新增的物件

  17. 操作物件

  18. Borland C++ Builder • 新增一個Component 1

  19. Import ActiveX 我們剛建出來的物件

  20. 使用元件

  21. 如何刪除已經登錄的資訊 點選 Interface 1.刪除 Interface Uid 2. Class Uid

  22. 如何刪除已經登錄的資訊 Type Library Uid Class Uid

  23. 如何刪除已經登錄的資訊 搜尋刪除Uid • 執行 regedit

More Related