關於Windows的外殼擴充編程,拖放是比較簡單的一種,在網上可以找到不少介紹這個技巧的文章。大部分是介紹使用MFC的COleDropTarget實現的,我覺得一般使用COleDropTarget已經很好了,但是我習慣在一些程式模組中,完全的不使用MFC,比如純SDK編程,還有用在ATL的時候,MFC是相當累贅的。所以COleDropTarget在這個意義上講不夠完美。參考了MSDN以及www.CodeProject.com的相關文章和代碼(by Thomas
CDO for Windows 2000Using Native COM Support in Microsoft Visual C++Microsoft Visual C++ version 5.0 or later has native COM support through the #import statement. Using this statement allows you to automatically add type information contained in a
In this walkthrough you will create an XML purchase order schema as part of a Windows Application project. The walkthrough will consist of three main sections:Creating a Windows Application project and adding an XML Schema.Creating a relational
Although .NET assemblies are the best choice for new applications, you may at times need to employ COM objects instead. This walkthrough demonstrates two ways to create COM objects with Visual Basic .NET: with and without the COM class template.The
摘 要:XML文檔是近年來比較流行的結構化文檔形式,其主要用途不只適用於開發網頁,而且在其他場合也有很廣泛的應用。本文主要介紹用VC++開發應用程式時對XML文檔的解析。 關鍵詞: XML HTML SGML COM DOM 一、 XML 簡介 XML(Xtensible Markup Language,即擴充標記語言)的發展起源於1996年。當時,出版界巨頭和Web業內人士經過共同討論,提出了建立SGML(Standard Generalized Markup Language,
前面已經接觸到類的變數、屬性以及枚舉,但我們怎樣才能更好的利用它們呢? 顯然,子過程就是其中的一種方式,它幾乎出現所有的Visual Basic程式中,所以這裡來舉例說明。在CDog類中添加下列代碼: Public Sub Bark() MsgBox "Woof! Woof!" End Sub 這裡的子過程是最常見的,我們可以簡單地使用MyDog.Bark來調用它。 下面來試一試: 將表單Form1的Command按鈕的代碼改成: Dim MyDog As