#include "BIDB.h"
CBiRecordSet* CALLBACK CreateRecordSet(CDatabase* db, LPCTSTR szTableName, LPCTSTR szWhere, LPCTSTR szFieldName, DWORD dwOptions)
Description
This function creates recordset for the specified ODBC database. You must specify the table name in the database and the name of the field contains the DIB as large binary data. You can specify WHERE clause as in SQL statements. For example: “Author=‘Smith”AND ID=125”.
Parameters
CDatabase* |
db |
Pointer the CDatabase object. |
LPCTSTR |
szTableName |
Name of the table to open in the database. |
LPCTSTR |
szWhere |
This string is the SQL WHERE clause. |
LPCTSTR |
szFieldName |
Name of the field contains large binary object data. |
DWORD |
dwOptions |
Recordset opening options. For example: CRecordset::none |
Return values
Returns the pointer to the CBiRecordSet object on success, otherwise NULL. The GetLastDBError returns the error code.
Requirements
Header : Declared in BiDb.h; include BiDb.h.
Library : Use BiDb.lib.
DLLs : BiDb.dll.