CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  界面

帮忙!哪位朋友可以帮我把msdn里的CEditView,CDatabase,CRecordset三个类的成员函数列表贴出来?

楼主superkt(伟大领袖毛主席)2003-01-09 13:45:52 在 VC/MFC / 界面 提问

我的光驱现在装不了,但是又有急用!谢了 问题点数:50、回复次数:5Top

1 楼cnzxy(★★★★★)回复于 2003-01-09 13:53:26 得分 35

CRecordset   Class   Members  
  Data   Members  
  Construction  
  Recordset   Attributes  
  Recordset   Update   Operations  
  Recordset   Navigation   Operations  
  Other   Recordset   Operations  
  Recordset   Overridables  
   
  Data   Members    
   
  m_hstmt   Contains   the   ODBC   statement   handle   for   the   recordset.   Type   HSTMT.    
  m_nFields   Contains   the   number   of   field   data   members   in   the   recordset.   Type   UINT.    
  m_nParams   Contains   the   number   of   parameter   data   members   in   the   recordset.   Type   UINT.    
  m_pDatabase   Contains   a   pointer   to   the   CDatabase   object   through   which   the   recordset   is   connected   to   a   data   source.    
  m_strFilter   Contains   a   CString   that   specifies   a   Structured   Query   Language   (SQL)   WHERE   clause.   Used   as   a   filter   to   select   only   those   records   that   meet   certain   criteria.    
  m_strSort   Contains   a   CString   that   specifies   an   SQL   ORDER   BY   clause.   Used   to   control   how   the   records   are   sorted.    
   
   
  Construction    
   
  CRecordset   Constructs   a   CRecordset   object.   Your   derived   class   must   provide   a   constructor   that   calls   this   one.    
  Open   Opens   the   recordset   by   retrieving   the   table   or   performing   the   query   that   the   recordset   represents.    
  Close   Closes   the   recordset   and   the   ODBC   HSTMT   associated   with   it.    
   
   
  Recordset   Attributes    
   
  CanAppend   Returns   nonzero   if   new   records   can   be   added   to   the   recordset   via   the   AddNew   member   function.    
  CanBookmark   Returns   nonzero   if   the   recordset   supports   bookmarks.    
  CanRestart   Returns   nonzero   if   Requery   can   be   called   to   run   the   recordset’s   query   again.    
  CanScroll   Returns   nonzero   if   you   can   scroll   through   the   records.    
  CanTransact   Returns   nonzero   if   the   data   source   supports   transactions.    
  CanUpdate   Returns   nonzero   if   the   recordset   can   be   updated   (you   can   add,   update,   or   delete   records).    
  GetODBCFieldCount   Returns   the   number   of   fields   in   the   recordset.    
  GetRecordCount   Returns   the   number   of   records   in   the   recordset.    
  GetStatus   Gets   the   status   of   the   recordset:   the   index   of   the   current   record   and   whether   a   final   count   of   the   records   has   been   obtained.    
  GetTableName   Gets   the   name   of   the   table   on   which   the   recordset   is   based.    
  GetSQL   Gets   the   SQL   string   used   to   select   records   for   the   recordset.    
  IsOpen   Returns   nonzero   if   Open   has   been   called   previously.    
  IsBOF   Returns   nonzero   if   the   recordset   has   been   positioned   before   the   first   record.   There   is   no   current   record.    
  IsEOF   Returns   nonzero   if   the   recordset   has   been   positioned   after   the   last   record.   There   is   no   current   record.    
  IsDeleted   Returns   nonzero   if   the   recordset   is   positioned   on   a   deleted   record.    
   
   
  Recordset   Update   Operations    
   
  AddNew   Prepares   for   adding   a   new   record.   Call   Update   to   complete   the   addition.    
  CancelUpdate   Cancels   any   pending   updates   due   to   an   AddNew   or   Edit   operation.    
  Delete   Deletes   the   current   record   from   the   recordset.   You   must   explicitly   scroll   to   another   record   after   the   deletion.    
  Edit   Prepares   for   changes   to   the   current   record.   Call   Update   to   complete   the   edit.    
  Update   Completes   an   AddNew   or   Edit   operation   by   saving   the   new   or   edited   data   on   the   data   source.    
   
   
  Recordset   Navigation   Operations    
   
  GetBookmark   Assigns   the   bookmark   value   of   a   record   to   the   parameter   object.    
  Move   Positions   the   recordset   to   a   specified   number   of   records   from   the   current   record   in   either   direction.    
  MoveFirst   Positions   the   current   record   on   the   first   record   in   the   recordset.   Test   for   IsBOF   first.    
  MoveLast   Positions   the   current   record   on   the   last   record   or   on   the   last   rowset.   Test   for   IsEOF   first.    
  MoveNext   Positions   the   current   record   on   the   next   record   or   on   the   next   rowset.   Test   for   IsEOF   first.    
  MovePrev   Positions   the   current   record   on   the   previous   record   or   on   the   previous   rowset.   Test   for   IsBOF   first.    
  SetAbsolutePosition   Positions   the   recordset   on   the   record   corresponding   to   the   specified   record   number.    
  SetBookmark   Positions   the   recordset   on   the   record   specified   by   the   bookmark.    
   
   
  Other   Recordset   Operations    
   
  Cancel   Cancels   an   asynchronous   operation   or   a   process   from   a   second   thread.    
  FlushResultSet   Returns   nonzero   if   there   is   another   result   set   to   be   retrieved,   when   using   a   predefined   query.    
  GetFieldValue   Returns   the   value   of   a   field   in   a   recordset.    
  GetODBCFieldInfo   Returns   specific   kinds   of   information   about   the   fields   in   a   recordset.    
  GetRowsetSize   Returns   the   number   of   records   you   wish   to   retrieve   during   a   single   fetch.    
  GetRowsFetched   Returns   the   actual   number   of   rows   retrieved   during   a   fetch.    
  GetRowStatus   Returns   the   status   of   the   row   after   a   fetch.    
  IsFieldDirty   Returns   nonzero   if   the   specified   field   in   the   current   record   has   been   changed.    
  IsFieldNull   Returns   nonzero   if   the   specified   field   in   the   current   record   is   Null   (has   no   value).    
  IsFieldNullable   Returns   nonzero   if   the   specified   field   in   the   current   record   can   be   set   to   Null   (having   no   value).    
  RefreshRowset   Refreshes   the   data   and   status   of   the   specified   row(s).    
  Requery   Runs   the   recordset’s   query   again   to   refresh   the   selected   records.    
  SetFieldDirty   Marks   the   specified   field   in   the   current   record   as   changed.    
  SetFieldNull   Sets   the   value   of   the   specified   field   in   the   current   record   to   Null   (having   no   value).    
  SetLockingMode   Sets   the   locking   mode   to   “optimistic”   locking   (the   default)   or   “pessimistic”   locking.   Determines   how   records   are   locked   for   updates.    
  SetParamNull   Sets   the   specified   parameter   to   Null   (having   no   value).    
  SetRowsetCursorPosition   Positions   the   cursor   on   the   specified   row   within   the   rowset.    
   
   
  Recordset   Overridables    
   
  Check   Called   to   examine   the   return   code   from   an   ODBC   API   function.    
  CheckRowsetError   Called   to   handle   errors   generated   during   record   fetching.    
  DoBulkFieldExchange   Called   to   exchange   bulk   rows   of   data   from   the   data   source   to   the   recordset.   Implements   bulk   record   field   exchange   (Bulk   RFX).    
  DoFieldExchange   Called   to   exchange   data   (in   both   directions)   between   the   field   data   members   of   the   recordset   and   the   corresponding   record   on   the   data   source.   Implements   record   field   exchange   (RFX).    
  GetDefaultConnect   Called   to   get   the   default   connect   string.    
  GetDefaultSQL   Called   to   get   the   default   SQL   string   to   execute.    
  OnSetOptions   Called   to   set   options   for   the   specified   ODBC   statement.    
  SetRowsetSize   Specifies   the   number   of   records   you   wish   to   retrieve   during   a   fetch.    
   
   
  CRecordset   Overview   |     Base   Class   Members   |     Hierarchy   Chart  
   
   
  --------------------------------------------------------------------------------  
  Send   feedback   to   MSDN.Look   here   for   MSDN   Online   resources.Top

2 楼cnzxy(★★★★★)回复于 2003-01-09 13:53:51 得分 0

CDatabase   Class   Members  
  Data   Members  
   
  m_hdbc   Open   Database   Connectivity   (ODBC)   connection   handle   to   a   data   source.   Type   HDBC.    
   
   
  Construction  
   
  CDatabase   Constructs   a   CDatabase   object.   You   must   initialize   the   object   by   calling   OpenEx   or   Open.    
  Open   Establishes   a   connection   to   a   data   source   (through   an   ODBC   driver).    
  OpenEx   Establishes   a   connection   to   a   data   source   (through   an   ODBC   driver).    
  Close   Closes   the   data   source   connection.    
   
   
  Database   Attributes  
   
  GetConnect   Returns   the   ODBC   connect   string   used   to   connect   the   CDatabase   object   to   a   data   source.    
  IsOpen   Returns   nonzero   if   the   CDatabase   object   is   currently   connected   to   a   data   source.    
  GetDatabaseName   Returns   the   name   of   the   database   currently   in   use.    
  CanUpdate   Returns   nonzero   if   the   CDatabase   object   is   updatable   (not   read-only).    
  CanTransact   Returns   nonzero   if   the   data   source   supports   transactions.    
  SetLoginTimeout   Sets   the   number   of   seconds   after   which   a   data   source   connection   attempt   will   time   out.    
  SetQueryTimeout   Sets   the   number   of   seconds   after   which   database   query   operations   will   time   out.   Affects   all   subsequent   recordset   Open,   AddNew,   Edit,   and   Delete   calls.    
  GetBookmarkPersistence   Identifies   the   operations   through   which   bookmarks   persist   on   recordset   objects.    
  GetCursorCommitBehavior   Identifies   the   effect   of   committing   a   transaction   on   an   open   recordset   object.    
  GetCursorRollbackBehavior   Identifies   the   effect   of   rolling   back   a   transaction   on   an   open   recordset   object.    
   
   
  Database   Operations  
   
  BeginTrans   Starts   a   “transaction”   —   a   series   of   reversible   calls   to   the   AddNew,   Edit,   Delete,   and   Update   member   functions   of   class   CRecordset   —   on   the   connected   data   source.   The   data   source   must   support   transactions   for   BeginTrans   to   have   any   effect.    
  BindParameters   Allows   you   to   bind   parameters   before   calling   CDatabase::ExecuteSQL.    
  CommitTrans   Completes   a   transaction   begun   by   BeginTrans.   Commands   in   the   transaction   that   alter   the   data   source   are   carried   out.    
  Rollback   Reverses   changes   made   during   the   current   transaction.   The   data   source   returns   to   its   previous   state,   as   defined   at   the   BeginTrans   call,   unaltered.      
  Cancel   Cancels   an   asynchronous   operation   or   a   process   from   a   second   thread.    
  ExecuteSQL   Executes   an   SQL   statement.   No   data   records   are   returned.    
   
   
  Database   Overridables  
   
  OnSetOptions   Called   by   the   framework   to   set   standard   connection   options.   The   default   implementation   sets   the   query   timeout   value.   You   can   establish   these   options   ahead   of   time   by   calling   SetQueryTimeout.    
   
   
  CDatabase   Overview   |     Base   Class   Members   |     Hierarchy   Chart  
   
   
  --------------------------------------------------------------------------------  
  Send   feedback   to   MSDN.Look   here   for   MSDN   Online   resources.Top

3 楼wangjinmin(土不)回复于 2003-01-09 13:54:16 得分 15

CEditView   Class   Members  
  Data   Members  
   
  dwStyleDefault   Default   style   for   objects   of   type   CEditView.    
   
   
  Construction  
   
  CEditView   Constructs   an   object   of   type   CEditView.    
   
   
  Attributes  
   
  GetEditCtrl   Provides   access   to   the   CEdit   portion   of   a   CEditView   object   (the   Windows   edit   control).    
  GetPrinterFont   Retrieves   the   current   printer   font.    
  GetSelectedText   Retrieves   the   current   text   selection.    
  LockBuffer   Locks   the   buffer.    
  UnlockBuffer   Unlocks   the   buffer.    
  GetBufferLength   Obtains   the   length   of   the   character   buffer.    
  SetPrinterFont   Sets   a   new   printer   font.    
  SetTabStops   Sets   tab   stops   for   both   screen   display   and   printing.    
   
   
  Operations  
   
  FindText   Searches   for   a   string   within   the   text.    
  PrintInsideRect   Renders   text   inside   a   given   rectangle.    
  SerializeRaw   Serializes   a   CEditView   object   to   disk   as   raw   text.    
   
   
  Overridables  
   
  OnFindNext   Finds   next   occurrence   of   a   text   string.    
  OnReplaceAll   Replaces   all   occurrences   of   a   given   string   with   a   new   string.    
  OnReplaceSel   Replaces   current   selection.    
  OnTextNotFound   Called   when   a   find   operation   fails   to   match   any   further   text.    
   
   
  CEditView   Overview   |     Base   Class   Members   |     Hierarchy   Chart  
   
  Top

4 楼cnzxy(★★★★★)回复于 2003-01-09 13:54:17 得分 0

CEditView   Class   Members  
  Data   Members  
   
  dwStyleDefault   Default   style   for   objects   of   type   CEditView.    
   
   
  Construction  
   
  CEditView   Constructs   an   object   of   type   CEditView.    
   
   
  Attributes  
   
  GetEditCtrl   Provides   access   to   the   CEdit   portion   of   a   CEditView   object   (the   Windows   edit   control).    
  GetPrinterFont   Retrieves   the   current   printer   font.    
  GetSelectedText   Retrieves   the   current   text   selection.    
  LockBuffer   Locks   the   buffer.    
  UnlockBuffer   Unlocks   the   buffer.    
  GetBufferLength   Obtains   the   length   of   the   character   buffer.    
  SetPrinterFont   Sets   a   new   printer   font.    
  SetTabStops   Sets   tab   stops   for   both   screen   display   and   printing.    
   
   
  Operations  
   
  FindText   Searches   for   a   string   within   the   text.    
  PrintInsideRect   Renders   text   inside   a   given   rectangle.    
  SerializeRaw   Serializes   a   CEditView   object   to   disk   as   raw   text.    
   
   
  Overridables  
   
  OnFindNext   Finds   next   occurrence   of   a   text   string.    
  OnReplaceAll   Replaces   all   occurrences   of   a   given   string   with   a   new   string.    
  OnReplaceSel   Replaces   current   selection.    
  OnTextNotFound   Called   when   a   find   operation   fails   to   match   any   further   text.    
   
   
  CEditView   Overview   |     Base   Class   Members   |     Hierarchy   Chart  
   
   
  --------------------------------------------------------------------------------  
  Send   feedback   to   MSDN.Look   here   for   MSDN   Online   resources.Top

5 楼superkt(伟大领袖毛主席)回复于 2003-01-09 14:04:21 得分 0

知道么,我爱死你们了!Top

相关问题

  • 关于重载CRecordset 的open()函数
  • CEditView的绘图函数在那里
  • CRecordset类的MoveLast函数竟然莫名其妙的写文件?
  • 关于CRecordSet类的IsBOF()成员函数的简单问题。
  • 函数
  • 函数
  • 函数?
  • 函数
  • 函数
  • 函数

关键词

  • sql
  • crecordset
  • cdatabase
  • operationsrecordset
  • recordset
  • hstmt
  • contains
  • clause
  • members
  • constructs

得分解答快速导航

  • 帖主:superkt
  • cnzxy
  • wangjinmin

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo