Developing Visual Basic Add-Ins (Paperback)
暫譯: 開發 Visual Basic 外掛程式 (平裝本)

PhD Steven Roman

  • 出版商: O'Reilly
  • 出版日期: 1999-01-11
  • 定價: $920
  • 售價: 2.2$199
  • 語言: 英文
  • 頁數: 183
  • 裝訂: Paperback
  • ISBN: 1565925270
  • ISBN-13: 9781565925274
  • 相關分類: Visual Basic
  • 立即出貨(限量) (庫存=10)

買這商品的人也買了...

相關主題

商品描述

Most developers can think of dozens of ways in which they'd like to modify Visual Basic's integrated development environment (or IDE) in order to work more productively. These enhancements can range from simple items (like determining the version of Visual Basic for Applications used by the IDE, or clearing the Immediate window) to much more involved ones (like developing a utility that allows the tab order of the individual controls on a form to be set easily).Just as the major Microsoft Office applications expose their functionality through their object models, Visual Basic's development environment also exposes its functionality through the Visual Basic Extensibility Model. Unfortunately, though, the model is poorly documented and poorly understood. And most programmers simply don't have the time to sift through the documentation and experiment using trial and error to extend the IDE.Developing Visual Basic Add-ins addresses this lack of adequate documentation by showing how to develop add-ins for Visual Basic Versions 5.0 and 6.0 and by providing numerous coding examples of simple but useful add-ins.The book is divided into two parts. The first part, Add-in Basics, discusses the mechanics of add-in creation. This includes such topics as:

  • Retrieving a reference to the VB IDE
  • Registering an add-in
  • Activating an add-in
  • Making an add-in's functionality accessible through a menu option or toolbar button
Developing an add-in requires creativity, since it requires a programmer to both identify a shortcoming of the IDE and implement some means of enhancing it. The second part of the book, The Extensibility Model, prepares you for this creative part of add-in development by focusing on the VB IDE Extensibility Model. Individual chapters provide in-depth coverage of specific categories of objects, such as user interface objects, project-related objects, and form and control objects.With Developing Visual Basic Add-ins, you can finally make all of the enhancements to the VB IDE that will allow you to program more effectively.

商品描述(中文翻譯)

大多數開發人員都能想到數十種希望修改 Visual Basic 的整合開發環境(IDE)以提高工作效率的方法。這些增強功能可以從簡單的項目(例如確定 IDE 使用的 Visual Basic for Applications 版本或清除 Immediate 視窗)到更複雜的項目(例如開發一個工具,允許輕鬆設置表單上各個控制項的標籤順序)。正如主要的 Microsoft Office 應用程式通過其物件模型暴露其功能,Visual Basic 的開發環境也通過 Visual Basic 擴展性模型來暴露其功能。不幸的是,這個模型的文檔不完善且難以理解。而且大多數程式設計師根本沒有時間去篩選文檔並通過試錯來擴展 IDE。

《開發 Visual Basic 外掛程式》針對這一文檔不足的情況,展示了如何為 Visual Basic 版本 5.0 和 6.0 開發外掛程式,並提供了許多簡單但實用的外掛程式的程式碼範例。這本書分為兩個部分。第一部分,外掛程式基礎,討論了外掛程式創建的機制。這包括以下主題:

- 獲取對 VB IDE 的引用
- 註冊外掛程式
- 啟用外掛程式
- 通過菜單選項或工具列按鈕使外掛程式的功能可訪問

開發外掛程式需要創造力,因為它要求程式設計師既要識別 IDE 的不足之處,又要實施某種增強手段。書的第二部分,擴展性模型,通過專注於 VB IDE 擴展性模型,為外掛程式開發的創造性部分做好準備。各章節深入涵蓋特定類別的物件,例如用戶介面物件、專案相關物件以及表單和控制項物件。

通過《開發 Visual Basic 外掛程式》,您終於可以對 VB IDE 進行所有增強,使您能夠更有效地編程。