Available in the LEADTOOLS Imaging toolkit. |
dbCan... example for C++ 4.0 and later
This example displays property values in a message box. You can implement this example by adding a button, with this code, to the project described in Using ODBC to Access Image Data.
CString TempStr, InfoStr;
InfoStr.Format("dbCanAppend = %d\n", m_Lead1.GetDbCanAppend());
TempStr.Format("dbCanRestart = %d\n", m_Lead1.GetDbCanRestart());
InfoStr += TempStr;
TempStr.Format("dbCanScroll = %d\n", m_Lead1.GetDbCanScroll());
InfoStr += TempStr;
TempStr.Format("dbCanUpdate = %d\n", m_Lead1.GetDbCanUpdate());
InfoStr += TempStr;
TempStr.Format("dbEditMode = %d\n", m_Lead1.GetDbEditMode());
InfoStr += TempStr;
TempStr.Format("dbIsBOF = %d\n", m_Lead1.GetDbIsBOF());
InfoStr += TempStr;
TempStr.Format("dbIsEOF = %d\n", m_Lead1.GetDbIsEOF());
InfoStr += TempStr;
TempStr.Format("dbIsDeleted = %d\n", m_Lead1.GetDbIsDeleted());
InfoStr += TempStr;
TempStr.Format("dbIsOpen = %d\n", m_Lead1.GetDbIsOpen());
InfoStr += TempStr;
TempStr.Format("dbLoadBits = %d\n", m_Lead1.GetDbLoadBits());
InfoStr += TempStr;
TempStr.Format("dbLockingMode = %d\n", m_Lead1.GetDbLockingMode());
InfoStr += TempStr;
TempStr.Format("dbRecordCount = %d\n", m_Lead1.GetDbRecordCount());
InfoStr += TempStr;
TempStr.Format("dbCurrentRecord = %d (0 based)", m_Lead1.GetDbCurrentRecord());
InfoStr += TempStr;
MessageBox(InfoStr, "INFO");