dao360.tlh
来自「一个模板打印的源程序。可用于医院诊断报告的打印。」· TLH 代码 · 共 2,120 行 · 第 1/5 页
TLH
2,120 行
// Property data
//
__declspec(property(get=GetName,put=PutName))
_bstr_t Name;
__declspec(property(get=GetForeign))
VARIANT_BOOL Foreign;
__declspec(property(get=GetUnique,put=PutUnique))
VARIANT_BOOL Unique;
__declspec(property(get=GetClustered,put=PutClustered))
VARIANT_BOOL Clustered;
__declspec(property(get=GetRequired,put=PutRequired))
VARIANT_BOOL Required;
__declspec(property(get=GetIgnoreNulls,put=PutIgnoreNulls))
VARIANT_BOOL IgnoreNulls;
__declspec(property(get=GetPrimary,put=PutPrimary))
VARIANT_BOOL Primary;
__declspec(property(get=GetDistinctCount))
long DistinctCount;
__declspec(property(get=GetFields,put=PutFields))
_variant_t Fields;
//
// Wrapper methods for error-handling
//
_bstr_t GetName ( );
void PutName (
_bstr_t pbstr );
VARIANT_BOOL GetForeign ( );
VARIANT_BOOL GetUnique ( );
void PutUnique (
VARIANT_BOOL pb );
VARIANT_BOOL GetClustered ( );
void PutClustered (
VARIANT_BOOL pb );
VARIANT_BOOL GetRequired ( );
void PutRequired (
VARIANT_BOOL pb );
VARIANT_BOOL GetIgnoreNulls ( );
void PutIgnoreNulls (
VARIANT_BOOL pb );
VARIANT_BOOL GetPrimary ( );
void PutPrimary (
VARIANT_BOOL pb );
long GetDistinctCount ( );
_variant_t GetFields ( );
void PutFields (
const _variant_t & pv );
_FieldPtr CreateField (
const _variant_t & Name = vtMissing,
const _variant_t & Type = vtMissing,
const _variant_t & Size = vtMissing );
PropertyPtr CreateProperty (
const _variant_t & Name = vtMissing,
const _variant_t & Type = vtMissing,
const _variant_t & Value = vtMissing,
const _variant_t & DDL = vtMissing );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_Name (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall put_Name (
BSTR pbstr ) = 0;
virtual HRESULT __stdcall get_Foreign (
VARIANT_BOOL * pb ) = 0;
virtual HRESULT __stdcall get_Unique (
VARIANT_BOOL * pb ) = 0;
virtual HRESULT __stdcall put_Unique (
VARIANT_BOOL pb ) = 0;
virtual HRESULT __stdcall get_Clustered (
VARIANT_BOOL * pb ) = 0;
virtual HRESULT __stdcall put_Clustered (
VARIANT_BOOL pb ) = 0;
virtual HRESULT __stdcall get_Required (
VARIANT_BOOL * pb ) = 0;
virtual HRESULT __stdcall put_Required (
VARIANT_BOOL pb ) = 0;
virtual HRESULT __stdcall get_IgnoreNulls (
VARIANT_BOOL * pb ) = 0;
virtual HRESULT __stdcall put_IgnoreNulls (
VARIANT_BOOL pb ) = 0;
virtual HRESULT __stdcall get_Primary (
VARIANT_BOOL * pb ) = 0;
virtual HRESULT __stdcall put_Primary (
VARIANT_BOOL pb ) = 0;
virtual HRESULT __stdcall get_DistinctCount (
long * pl ) = 0;
virtual HRESULT __stdcall get_Fields (
VARIANT * pv ) = 0;
virtual HRESULT __stdcall put_Fields (
VARIANT pv ) = 0;
virtual HRESULT __stdcall raw_CreateField (
VARIANT Name,
VARIANT Type,
VARIANT Size,
struct _Field * * ppfld ) = 0;
virtual HRESULT __stdcall raw_CreateProperty (
VARIANT Name,
VARIANT Type,
VARIANT Value,
VARIANT DDL,
struct Property * * pprp ) = 0;
};
struct __declspec(uuid("00000031-0000-0010-8000-00aa006d2ea4"))
Recordset : _DAO
{
//
// Property data
//
__declspec(property(get=GetFields))
FieldsPtr Fields;
__declspec(property(get=GetValidationRule))
_bstr_t ValidationRule;
__declspec(property(get=GetCacheSize,put=PutCacheSize))
long CacheSize;
__declspec(property(get=GetPercentPosition,put=PutPercentPosition))
float PercentPosition;
__declspec(property(get=GetAbsolutePosition,put=PutAbsolutePosition))
long AbsolutePosition;
__declspec(property(get=GetEditMode))
short EditMode;
__declspec(property(get=GetODBCFetchCount))
long ODBCFetchCount;
__declspec(property(get=GetODBCFetchDelay))
long ODBCFetchDelay;
__declspec(property(get=GetParent))
DatabasePtr Parent;
__declspec(property(get=GetIndexes))
IndexesPtr Indexes;
__declspec(property(get=GetCollect,put=PutCollect))
_variant_t Collect[];
__declspec(property(get=GetBatchSize,put=PutBatchSize))
long BatchSize;
__declspec(property(get=GetBatchCollisionCount))
long BatchCollisionCount;
__declspec(property(get=GetBatchCollisions))
_variant_t BatchCollisions;
__declspec(property(get=GetConnection,put=PutRefConnection))
ConnectionPtr Connection;
__declspec(property(get=GetRecordStatus))
short RecordStatus;
__declspec(property(get=GetUpdateOptions,put=PutUpdateOptions))
long UpdateOptions;
__declspec(property(get=GethStmt))
long hStmt;
__declspec(property(get=GetStillExecuting))
VARIANT_BOOL StillExecuting;
__declspec(property(get=GetBOF))
VARIANT_BOOL BOF;
__declspec(property(get=GetBookmarkable))
VARIANT_BOOL Bookmarkable;
__declspec(property(get=GetDateCreated))
_variant_t DateCreated;
__declspec(property(get=GetadoEOF))
VARIANT_BOOL adoEOF;
__declspec(property(get=GetFilter,put=PutFilter))
_bstr_t Filter;
__declspec(property(get=GetIndex,put=PutIndex))
_bstr_t Index;
__declspec(property(get=GetLastModified))
SAFEARRAY * LastModified;
__declspec(property(get=GetLastUpdated))
_variant_t LastUpdated;
__declspec(property(get=GetLockEdits,put=PutLockEdits))
VARIANT_BOOL LockEdits;
__declspec(property(get=GetName))
_bstr_t Name;
__declspec(property(get=GetNoMatch))
VARIANT_BOOL NoMatch;
__declspec(property(get=GetSort,put=PutSort))
_bstr_t Sort;
__declspec(property(get=GetTransactions))
VARIANT_BOOL Transactions;
__declspec(property(get=GetType))
short Type;
__declspec(property(get=GetRecordCount))
long RecordCount;
__declspec(property(get=GetUpdatable))
VARIANT_BOOL Updatable;
__declspec(property(get=GetRestartable))
VARIANT_BOOL Restartable;
__declspec(property(get=GetValidationText))
_bstr_t ValidationText;
//
// Wrapper methods for error-handling
//
VARIANT_BOOL GetBOF ( );
SAFEARRAY * GetBookmark ( );
void PutBookmark (
SAFEARRAY * * ppsach );
VARIANT_BOOL GetBookmarkable ( );
_variant_t GetDateCreated ( );
VARIANT_BOOL GetadoEOF ( );
_bstr_t GetFilter ( );
void PutFilter (
_bstr_t pbstr );
_bstr_t GetIndex ( );
void PutIndex (
_bstr_t pbstr );
SAFEARRAY * GetLastModified ( );
_variant_t GetLastUpdated ( );
VARIANT_BOOL GetLockEdits ( );
void PutLockEdits (
VARIANT_BOOL pb );
_bstr_t GetName ( );
VARIANT_BOOL GetNoMatch ( );
_bstr_t GetSort ( );
void PutSort (
_bstr_t pbstr );
VARIANT_BOOL GetTransactions ( );
short GetType ( );
long GetRecordCount ( );
VARIANT_BOOL GetUpdatable ( );
VARIANT_BOOL GetRestartable ( );
_bstr_t GetValidationText ( );
_bstr_t GetValidationRule ( );
SAFEARRAY * GetCacheStart ( );
void PutCacheStart (
SAFEARRAY * * ppsa );
long GetCacheSize ( );
void PutCacheSize (
long pl );
float GetPercentPosition ( );
void PutPercentPosition (
float pd );
long GetAbsolutePosition ( );
void PutAbsolutePosition (
long pl );
short GetEditMode ( );
long GetODBCFetchCount ( );
long GetODBCFetchDelay ( );
DatabasePtr GetParent ( );
FieldsPtr GetFields ( );
IndexesPtr GetIndexes ( );
HRESULT _30_CancelUpdate ( );
HRESULT AddNew ( );
HRESULT Close ( );
RecordsetPtr OpenRecordset (
const _variant_t & Type = vtMissing,
const _variant_t & Options = vtMissing );
HRESULT Delete ( );
HRESULT Edit ( );
HRESULT FindFirst (
_bstr_t Criteria );
HRESULT FindLast (
_bstr_t Criteria );
HRESULT FindNext (
_bstr_t Criteria );
HRESULT FindPrevious (
_bstr_t Criteria );
HRESULT MoveFirst ( );
HRESULT _30_MoveLast ( );
HRESULT MoveNext ( );
HRESULT MovePrevious ( );
HRESULT Seek (
_bstr_t Comparison,
const _variant_t & Key1,
const _variant_t & Key2 = vtMissing,
const _variant_t & Key3 = vtMissing,
const _variant_t & Key4 = vtMissing,
const _variant_t & Key5 = vtMissing,
const _variant_t & Key6 = vtMissing,
const _variant_t & Key7 = vtMissing,
const _variant_t & Key8 = vtMissing,
const _variant_t & Key9 = vtMissing,
const _variant_t & Key10 = vtMissing,
const _variant_t & Key11 = vtMissing,
const _variant_t & Key12 = vtMissing,
const _variant_t & Key13 = vtMissing );
HRESULT _30_Update ( );
RecordsetPtr Clone ( );
HRESULT Requery (
const _variant_t & NewQueryDef = vtMissing );
HRESULT Move (
long Rows,
const _variant_t & StartBookmark = vtMissing );
HRESULT FillCache (
const _variant_t & Rows = vtMissing,
const _variant_t & StartBookmark = vtMissing );
RecordsetPtr CreateDynaset (
const _variant_t & Options = vtMissing,
const _variant_t & Inconsistent = vtMissing );
RecordsetPtr CreateSnapshot (
const _variant_t & Options = vtMissing );
_QueryDefPtr CopyQueryDef ( );
RecordsetPtr ListFields ( );
RecordsetPtr ListIndexes ( );
_variant_t GetRows (
const _variant_t & NumRows = vtMissing );
_variant_t GetCollect (
const _variant_t & Item );
void PutCollect (
const _variant_t & Item,
const _variant_t & pvar );
HRESULT Cancel ( );
VARIANT_BOOL NextRecordset ( );
long GethStmt ( );
VARIANT_BOOL GetStillExecuting ( );
long GetBatchSize ( );
void PutBatchSize (
long pl );
long GetBatchCollisionCount ( );
_variant_t GetBatchCollisions ( );
ConnectionPtr GetConnection ( );
void PutRefConnection (
struct Connection * ppCn );
short GetRecordStatus ( );
long GetUpdateOptions ( );
void PutUpdateOptions (
long pl );
HRESULT CancelUpdate (
long UpdateType );
HRESULT Update (
long UpdateType,
VARIANT_BOOL Force );
HRESULT MoveLast (
long Options );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_BOF (
VARIANT_BOOL * pb ) = 0;
virtual HRESULT __stdcall get_Bookmark (
SAFEARRAY * * ppsach ) = 0;
virtual HRESULT __stdcall put_Bookmark (
SAFEARRAY * * ppsach ) = 0;
virtual HRESULT __stdcall get_Bookmarkable (
VARIANT_BOOL * pb ) = 0;
virtual HRESULT __stdcall get_DateCreated (
VARIANT * pvar ) = 0;
virtual HRESULT __stdcall get_adoEOF (
VARIANT_BOOL * pb ) = 0;
virtual HRESULT __stdcall get_Filter (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall put_Filter (
BSTR pbstr ) = 0;
virtual HRESULT __stdcall get_Index (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall put_Index (
BSTR pbstr ) = 0;
virtual HRESULT __stdcall get_LastModified (
SAFEARRAY * * ppsa ) = 0;
virtual HRESULT __stdcall get_LastUpdated (
VARIANT * pvar ) = 0;
virtual HRESULT __stdcall get_LockEdits (
VARIANT_BOOL * pb ) = 0;
virtual HRESULT __stdcall put_LockEdits (
VARIANT_BOOL pb ) = 0;
virtual HRESULT __stdcall get_Name (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall get_NoMatch (
VARIANT_BOOL * pb ) = 0;
virtual HRESULT __stdcall get_Sort (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall put_Sort (
BSTR pbstr ) = 0;
virtual HRESULT __stdcall get_Transactions (
VARIANT_BOOL * pb ) = 0;
virtual HRESULT __stdcall get_Type (
short * ps ) = 0;
virtual HRESULT __stdcall get_RecordCount (
long * pl ) = 0;
virtual HRESULT __stdcall get_Updatable (
VARIANT_BOOL * pb ) = 0;
virtual HRESULT __stdcall get_Restartable (
VARIANT_BOOL * pb ) = 0;
virtual HRESULT __stdcall get_ValidationText (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall get_ValidationRule (
BSTR * pbstr ) = 0;
virtual HRESULT __stdcall get_CacheStart (
SAFEARRAY * * ppsa ) = 0;
virtual HRESULT __stdcall put_CacheStart (
SAFEARRAY * * ppsa ) = 0;
virtual HRESULT __stdcall get_CacheSize (
long * pl ) = 0;
virtual HRESULT __stdcall put_CacheSize (
long pl ) = 0;
virtual HRESULT __stdcall get_PercentPosition (
float * pd ) = 0;
virtual HRESULT __stdcall put_PercentPosition (
float pd ) = 0;
virtual HRESULT __stdcall get_AbsolutePosition (
long * pl ) = 0;
virtual HRESULT __stdcall put_AbsolutePosition (
long pl ) = 0;
virtual HRESULT __stdcall get_EditMode (
short * pi ) = 0;
virtual HRESULT __stdcall get_ODBCFetchCount (
long * pl ) = 0;
virtual HRESULT __stdcall get_ODBCFetchDelay (
long * pl ) = 0;
virtual HRESULT __stdcall get_Parent (
struct Database * * pdb ) = 0;
virtual HRESULT __stdcall get_Fields (
struct Fields * * ppflds ) = 0;
virtual HRESULT __stdcall get_Indexes (
struct Indexes * * ppidxs ) = 0;
virtual HRESULT __stdcall raw__30_CancelUpdate ( ) = 0;
virtual HRESULT __stdcall raw_AddNew ( ) = 0;
virtual HRESULT __stdcall raw_Close ( ) = 0;
virtual HRESULT __stdcall raw_OpenRecordset (
VARIANT Type,
VARIANT Options,
struct Recordset * * pprst ) = 0;
virtual HRESULT __stdcall raw_Delete ( ) = 0;
virtual HRESULT __stdcall raw_Edit ( ) = 0;
virtual HRESULT __stdcall raw_FindFirst (
BSTR Criteria ) = 0;
virtual HRESULT __stdcall raw_FindLast (
BSTR Criteria ) = 0;
virtual HRESULT __stdcall raw_FindNext (
BSTR Criteria ) = 0;
virtual HRESULT __stdcall raw_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?