主题:[讨论]MFC-------有关类定义中的奇怪的函数声明
public:
HSTMT m_hstmt; // Source statement for this resultset结果集的资源声明
CDatabase* m_pDatabase; // Source database for this resultset
CString m_strFilter; // Where clause //where 子句
CString m_strSort; // Order By Clause //order by 子句
[color=FF0000]BOOL CanAppend() const[/color]; // Can AddNew be called?//是否能添加新记录
BOOL CanRestart() const; // Can Requery be called to restart a query?//重新查询
BOOL CanScroll() const; // Can MovePrev and MoveFirst be called?//滚动
BOOL CanTransact() const; // Are Transactions supported?是否支持transact 查询语言
BOOL CanUpdate() const; // Can Edit/AddNew/Delete be called?//能否更新
BOOL CanBookmark() const; // Can Get/SetBookmark be called?//能否设置书签
[color=0000FF]const CString& GetSQL() const; [/color] // SQL executed for this recordset
const CString& GetTableName() const; // Table name
请问各位大侠,红色部分和蓝色部分的区别是什么(针对那个const)?我是MFC的初学者.谢谢各位!
HSTMT m_hstmt; // Source statement for this resultset结果集的资源声明
CDatabase* m_pDatabase; // Source database for this resultset
CString m_strFilter; // Where clause //where 子句
CString m_strSort; // Order By Clause //order by 子句
[color=FF0000]BOOL CanAppend() const[/color]; // Can AddNew be called?//是否能添加新记录
BOOL CanRestart() const; // Can Requery be called to restart a query?//重新查询
BOOL CanScroll() const; // Can MovePrev and MoveFirst be called?//滚动
BOOL CanTransact() const; // Are Transactions supported?是否支持transact 查询语言
BOOL CanUpdate() const; // Can Edit/AddNew/Delete be called?//能否更新
BOOL CanBookmark() const; // Can Get/SetBookmark be called?//能否设置书签
[color=0000FF]const CString& GetSQL() const; [/color] // SQL executed for this recordset
const CString& GetTableName() const; // Table name
请问各位大侠,红色部分和蓝色部分的区别是什么(针对那个const)?我是MFC的初学者.谢谢各位!