- Code/Resource
- Windows Develop
- Linux-Unix program
- Internet-Socket-Network
- Web Server
- Browser Client
- Ftp Server
- Ftp Client
- Browser Plugins
- Proxy Server
- Email Server
- Email Client
- WEB Mail
- Firewall-Security
- Telnet Server
- Telnet Client
- ICQ-IM-Chat
- Search Engine
- Sniffer Package capture
- Remote Control
- xml-soap-webservice
- P2P
- WEB(ASP,PHP,...)
- TCP/IP Stack
- SNMP
- Grid Computing
- SilverLight
- DNS
- Cluster Service
- Network Security
- Communication-Mobile
- Game Program
- Editor
- Multimedia program
- Graph program
- Compiler program
- Compress-Decompress algrithms
- Crypt_Decrypt algrithms
- Mathimatics-Numerical algorithms
- MultiLanguage
- Disk/Storage
- Java Develop
- assembly language
- Applications
- Other systems
- Database system
- Embeded-SCM Develop
- FlashMX/Flex
- source in ebook
- Delphi VCL
- OS Develop
- MiddleWare
- MPI
- MacOS develop
- LabView
- ELanguage
- Software/Tools
- E-Books
- Artical/Document
DATASOURCE.H
Package: MSDN_VC98.zip [view]
Upload User: bangxh
Upload Date: 2007-01-31
Package Size: 42235k
Code Size: 3k
Category:
Windows Develop
Development Platform:
Visual C++
- //-----------------------------------------------------------------------------
- // Microsoft OLE DB TABLECOPY Sample
- // Copyright (C) 1995-1998 Microsoft Corporation
- //
- // @doc
- //
- // @module DATASOURCE.H
- //
- //-----------------------------------------------------------------------------
- #ifndef _DATASOURCE_H_
- #define _DATASOURCE_H_
- ///////////////////////////////////////////////////////////////
- // Includes
- //
- ///////////////////////////////////////////////////////////////
- #include "Property.h"
- //PROVIDERINFO
- struct PROVIDERINFO
- {
- WCHAR wszName[MAX_NAME_LEN];
- WCHAR wszParseName[MAX_NAME_LEN];
- WCHAR wszDescription[MAX_NAME_LEN];
- DBTYPE wType;
- };
- /////////////////////////////////////////////////////////////////
- // CDataSource class
- //
- /////////////////////////////////////////////////////////////////
- class CDataSource
- {
- public:
- //Constructors
- CDataSource();
- virtual ~CDataSource();
- //Members
- virtual BOOL IsConnected();
- virtual BOOL IsEqual(CDataSource* pCDataSource);
- virtual BOOL IsSimilar(CDataSource* pCDataSource);
- virtual BOOL Connect(HWND hWnd, CDataSource* pCDataSource = NULL);
- virtual BOOL Disconnect();
- virtual HRESULT GetProviders();
- virtual HRESULT GetConnectionProps();
- //OLEDB Interfaces
- IDBInitialize* m_pIDBInitialize; //DataSource interface
- IOpenRowset* m_pIOpenRowset; //Session interface
- IDBSchemaRowset* m_pIDBSchemaRowset; //Session interface
- ITableDefinition* m_pITableDefinition; //Session interface
- IIndexDefinition* m_pIIndexDefinition; //Session interface
- ICommandText* m_pICommandText; //Command interface
- IParseDisplayName* m_pIParseDisplayName; //Enum interface
- //Catalog Schema info
- WCHAR* m_pwszCatalog;
- WCHAR* m_pwszCatalogTerm;
- WCHAR* m_pwszCatalogLocation;
- WCHAR* m_pwszSchemaTerm;
- WCHAR* m_pwszTableTerm;
- //DataSource info
- ULONG m_ulActiveSessions;
- WCHAR* m_pwszDataSource;
- WCHAR* m_pwszDBMS;
- WCHAR* m_pwszDBMSVer;
- //Provider info
- WCHAR* m_pwszProviderName;
- WCHAR* m_pwszProviderParseName;
- WCHAR* m_pwszProviderFileName;
- WCHAR* m_pwszProviderVer;
- WCHAR* m_pwszProviderOLEDBVer;
- //Enumerator ProvierInfo
- ULONG m_cProviderInfo;
- PROVIDERINFO* m_rgProviderInfo;
- //Properties
- BOOL m_fReadOnly;
- BOOL m_fPrimaryKeysSupported;
- BOOL m_fMultipleParamSets;
- BOOL m_fIRowsetChange;
- BOOL m_fIRowsetUpdate;
- ULONG m_dwStorageObjects;
- BOOL m_fConnected;
- };
- #endif //_DATASOURCE_H_