www.pudn.com > 111.rar > adodc1.h


// 
/****************************************/ 
/*		SchoolManageSystem			    */ 
/*设计者:全佳营						*/ 
/*时间:2004.5.9-2004-5.18				*/ 
/*Email:ghostman@tzc.edu.cn				*/ 
/****************************************/ 
#pragma once 
 
// 计算机生成了由 Microsoft Visual C++ 创建的 IDispatch 包装类 
 
// 注意: 不要修改此文件的内容。如果此类由 
//  Microsoft Visual C++ 重新生成,您的修改将被改写。 
 
///////////////////////////////////////////////////////////////////////////// 
// CAdodc1 包装类 
 
class CAdodc1 : public CWnd 
{ 
protected: 
	DECLARE_DYNCREATE(CAdodc1) 
public: 
	CLSID const& GetClsid() 
	{ 
		static CLSID const clsid 
			= { 0x67397AA3, 0x7FB1, 0x11D0, { 0xB1, 0x48, 0x0, 0xA0, 0xC9, 0x22, 0xE8, 0x20 } }; 
		return clsid; 
	} 
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, 
						const RECT& rect, CWnd* pParentWnd, UINT nID,  
						CCreateContext* pContext = NULL) 
	{  
		return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID);  
	} 
 
    BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd,  
				UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE, 
				BSTR bstrLicKey = NULL) 
	{  
		return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID, 
		pPersist, bStorage, bstrLicKey);  
	} 
 
// 属性 
public: 
enum
{
    adDoMoveFirst = 0,
    adStayBOF = 1
}BOFActionEnum;
enum
{
    adDoMoveLast = 0,
    adStayEOF = 1,
    adDoAddNew = 2
}EOFActionEnum;
enum
{
    adFlatBevel = 0,
    ad3DBevel = 1
}AppearanceEnum;
enum
{
    adHorizontal = 0,
    adVertical = 1
}OrientationEnum;
enum
{
    adConnectTypeUnknown = 0,
    adConnectTypeOledb = 1,
    adConnectTypeOledbFile = 2,
    adConnectTypeOdbc = 3
}ConnectStringTypeEnum;
enum
{
    ERRADODC_ERRORINFO = 25020,
    ERRADODC_SETMODE = 25021,
    ERRADODC_SETCONNECTTIMEOUT = 25022,
    ERRADODC_SETCURSORLOCATION = 25023,
    ERRADODC_SETCOMMANDTIMEOUT = 25024,
    ERRADODC_SETCACHESIZE = 25025,
    ERRADODC_SETMAXRECORDS = 25026
}AdodcErrorEnum;
enum
{
    adOpenKeyset = 1,
    adOpenDynamic = 2,
    adOpenStatic = 3
}CursorTypeEnum;
enum
{
    adUseServer = 2,
    adUseClient = 3
}CursorLocationEnum;
enum
{
    adCmdUnknown = 8,
    adCmdText = 1,
    adCmdTable = 2,
    adCmdStoredProc = 4
}CommandTypeEnum;
 
 
// 操作 
public: 
 
// IAdodc 
 
// Functions 
// 
 
	CString get_ConnectionString() 
	{ 
		CString result; 
		InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
		return result; 
	} 
	void put_ConnectionString(LPCTSTR newValue) 
	{ 
		static BYTE parms[] = VTS_BSTR ; 
		InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	CString get_OLEDBString() 
	{ 
		CString result; 
		InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
		return result; 
	} 
	void put_OLEDBString(LPCTSTR newValue) 
	{ 
		static BYTE parms[] = VTS_BSTR ; 
		InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	CString get_OLEDBFile() 
	{ 
		CString result; 
		InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
		return result; 
	} 
	void put_OLEDBFile(LPCTSTR newValue) 
	{ 
		static BYTE parms[] = VTS_BSTR ; 
		InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	CString get_DataSourceName() 
	{ 
		CString result; 
		InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
		return result; 
	} 
	void put_DataSourceName(LPCTSTR newValue) 
	{ 
		static BYTE parms[] = VTS_BSTR ; 
		InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	CString get_OtherAttributes() 
	{ 
		CString result; 
		InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
		return result; 
	} 
	void put_OtherAttributes(LPCTSTR newValue) 
	{ 
		static BYTE parms[] = VTS_BSTR ; 
		InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_ConnectStringType() 
	{ 
		long result; 
		InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_ConnectStringType(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(0x6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	CString get_UserName() 
	{ 
		CString result; 
		InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
		return result; 
	} 
	void put_UserName(LPCTSTR newValue) 
	{ 
		static BYTE parms[] = VTS_BSTR ; 
		InvokeHelper(0x7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	CString get_Password() 
	{ 
		CString result; 
		InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
		return result; 
	} 
	void put_Password(LPCTSTR newValue) 
	{ 
		static BYTE parms[] = VTS_BSTR ; 
		InvokeHelper(0x8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_Mode() 
	{ 
		long result; 
		InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_Mode(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(0x9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_CursorLocation() 
	{ 
		long result; 
		InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_CursorLocation(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(0xa, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_IsolationLevel() 
	{ 
		long result; 
		InvokeHelper(0xb, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_IsolationLevel(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(0xb, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_ConnectionTimeout() 
	{ 
		long result; 
		InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_ConnectionTimeout(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(0xc, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_CommandTimeout() 
	{ 
		long result; 
		InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_CommandTimeout(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(0xd, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	CString get_RecordSource() 
	{ 
		CString result; 
		InvokeHelper(0xe, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
		return result; 
	} 
	void put_RecordSource(LPCTSTR newValue) 
	{ 
		static BYTE parms[] = VTS_BSTR ; 
		InvokeHelper(0xe, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_CursorType() 
	{ 
		long result; 
		InvokeHelper(0xf, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_CursorType(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(0xf, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_LockType() 
	{ 
		long result; 
		InvokeHelper(0x10, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_LockType(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(0x10, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_CommandType() 
	{ 
		long result; 
		InvokeHelper(0x11, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_CommandType(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(0x11, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_CursorOptions() 
	{ 
		long result; 
		InvokeHelper(0x12, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	long get_CacheSize() 
	{ 
		long result; 
		InvokeHelper(0x13, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_CacheSize(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(0x13, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_MaxRecords() 
	{ 
		long result; 
		InvokeHelper(0x14, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_MaxRecords(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(0x14, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_BOFAction() 
	{ 
		long result; 
		InvokeHelper(0x15, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_BOFAction(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(0x15, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_EOFAction() 
	{ 
		long result; 
		InvokeHelper(0x16, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_EOFAction(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(0x16, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	CString get_Caption() 
	{ 
		CString result; 
		InvokeHelper(DISPID_CAPTION, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
		return result; 
	} 
	void put_Caption(LPCTSTR newValue) 
	{ 
		static BYTE parms[] = VTS_BSTR ; 
		InvokeHelper(DISPID_CAPTION, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_Appearance() 
	{ 
		long result; 
		InvokeHelper(DISPID_APPEARANCE, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_Appearance(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(DISPID_APPEARANCE, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	unsigned long get_BackColor() 
	{ 
		unsigned long result; 
		InvokeHelper(DISPID_BACKCOLOR, DISPATCH_PROPERTYGET, VT_UI4, (void*)&result, NULL); 
		return result; 
	} 
	void put_BackColor(unsigned long newValue) 
	{ 
		static BYTE parms[] = VTS_UI4 ; 
		InvokeHelper(DISPID_BACKCOLOR, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	unsigned long get_ForeColor() 
	{ 
		unsigned long result; 
		InvokeHelper(DISPID_FORECOLOR, DISPATCH_PROPERTYGET, VT_UI4, (void*)&result, NULL); 
		return result; 
	} 
	void put_ForeColor(unsigned long newValue) 
	{ 
		static BYTE parms[] = VTS_UI4 ; 
		InvokeHelper(DISPID_FORECOLOR, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	long get_Orientation() 
	{ 
		long result; 
		InvokeHelper(0x17, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
		return result; 
	} 
	void put_Orientation(long newValue) 
	{ 
		static BYTE parms[] = VTS_I4 ; 
		InvokeHelper(0x17, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	LPDISPATCH get_Recordset() 
	{ 
		LPDISPATCH result; 
		InvokeHelper(0x18, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); 
		return result; 
	} 
	void putref_Recordset(LPDISPATCH newValue) 
	{ 
		static BYTE parms[] = VTS_DISPATCH ; 
		InvokeHelper(0x18, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms, newValue); 
	} 
	LPDISPATCH get_Font() 
	{ 
		LPDISPATCH result; 
		InvokeHelper(DISPID_FONT, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL); 
		return result; 
	} 
	void putref_Font(LPDISPATCH newValue) 
	{ 
		static BYTE parms[] = VTS_DISPATCH ; 
		InvokeHelper(DISPID_FONT, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms, newValue); 
	} 
	BOOL get_Enabled() 
	{ 
		BOOL result; 
		InvokeHelper(DISPID_ENABLED, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL); 
		return result; 
	} 
	void put_Enabled(BOOL newValue) 
	{ 
		static BYTE parms[] = VTS_BOOL ; 
		InvokeHelper(DISPID_ENABLED, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); 
	} 
	void Refresh() 
	{ 
		InvokeHelper(0x19, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
	} 
	void AboutBox() 
	{ 
		InvokeHelper(DISPID_ABOUTBOX, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
	} 
	void FireErrorInfo(SCODE sc, LPUNKNOWN pUnknown) 
	{ 
		static BYTE parms[] = VTS_SCODE VTS_UNKNOWN ; 
		InvokeHelper(0x1a, DISPATCH_METHOD, VT_EMPTY, NULL, parms, sc, pUnknown); 
	} 
 
// Properties 
// 
 
 
 
};