原创 OLE DB API 程序設計

開始之前,需要知道的一些不屬於OLE DB,但又需要用道的函數。 CoInitialize();CoCreateInstance();創建一個單一的,由CLSID指定的未初始化的類對象。STDAPI CoCreateInstance( 

原创 Session Objects

會晤(session)對象 會晤對象提供用以創建命令(commands)及行集(rowset)的方法,以及創建與修改表(tables)及索引(indexes)的方法。 CoType TSession {   [mandatory]   i

原创 ANSI vs UNICODE

環境:C RunTime Library Unicode 在ANSI C中的定義:String.htypedef unsigned short wchar_t 標準的ANSI C字符串函數及等價Unicode函數char * strchr

原创 Rowsets

行集(Rowsets) 行集是一個重要的對象,它使OLE DB組件以表格形式導出(expose)及操作數據。行集對象是行的集合,每行由數據列構成。 CoType TRowset {   [mandatory]   interface IA

原创 Properties

設置屬性 確定需要設置的屬性。 確定屬性所屬的集合。 分配DBPROPSET結構類型的數組,每個單元爲一個確定的屬性集合。 爲每個屬性集合分配一個DBPROP結構類型數組。每個數組中單元的數量是在第一步中確定的屬於本屬性集的屬性的數

原创 Bressanone

Bressanone Here I stand in Bressanone / With the stars up in the skyAre they shining over Brenner / And upon the other