www.pudn.com > ADOData.rar > fields1.cpp


// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++ 
 
// NOTE: Do not modify the contents of this file.  If this class is regenerated by 
//  Microsoft Visual C++, your modifications will be overwritten. 
 
 
#include "stdafx.h" 
#include "fields1.h" 
 
// Dispatch interfaces referenced by this interface 
#include "Field1.h" 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CFields properties 
 
///////////////////////////////////////////////////////////////////////////// 
// CFields operations 
 
long CFields::GetCount() 
{ 
	long result; 
	InvokeHelper(0x60020000, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
	return result; 
} 
 
void CFields::Refresh() 
{ 
	InvokeHelper(0x60020002, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
CField CFields::GetItem(const VARIANT& Index) 
{ 
	LPDISPATCH pDispatch; 
	static BYTE parms[] = 
		VTS_VARIANT; 
	InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, parms, 
		&Index); 
	return CField(pDispatch); 
} 
 
void CFields::Append(LPCTSTR Name, long Type, long DefinedSize, long Attrib) 
{ 
	static BYTE parms[] = 
		VTS_BSTR VTS_I4 VTS_I4 VTS_I4; 
	InvokeHelper(0x60040000, DISPATCH_METHOD, VT_EMPTY, NULL, parms, 
		 Name, Type, DefinedSize, Attrib); 
} 
 
void CFields::Delete(const VARIANT& Index) 
{ 
	static BYTE parms[] = 
		VTS_VARIANT; 
	InvokeHelper(0x60040001, DISPATCH_METHOD, VT_EMPTY, NULL, parms, 
		 &Index); 
}