isopen()这个函数到底是判断什么?
判断 被访问的数据库是否已经被程序打开了?(包括被其他程序打开)还是判断 数据库 已经被自身的程序打开了?还有一个问题是不是用了CDatabase,CRecordset这些MFC类就一定是使用了ODBC技术来连接数据库?刚学数据库编程,很多概念不是很明白,请诸位赐教

解决方案 »

  1.   

    CRecordset::IsOpen
    ==========================
    Determines if the recordset is already open.BOOL IsOpen( ) const;
    Return Value
    Nonzero if the recordset object's Open or Requery member function has previously been called and the recordset has not been closed; otherwise 0.
      

  2.   

    CDatabase::IsOpen
    ============================
    Call this member function to determine whether the CDatabase object is currently connected to a data source.BOOL IsOpen( ) const;
    Return Value
    Nonzero if the CDatabase object is currently connected; otherwise 0.