mirror of
https://github.com/clang-retro/mfc.git
synced 2026-11-28 21:29:33 -08:00
atldbcli.h: CDataSource (by class ID or ProgID, with property sets, through the service components or an initialization string) and CSession with transactions; CTable and CCommand (command text in either width or DEFINE_COMMAND's, parameters, rows affected, multiple results); CAccessor over classes with BEGIN_COLUMN_MAP, BEGIN_ACCESSOR_MAP and BEGIN_PARAM_MAP and the COLUMN_ENTRY forms, CDynamicAccessor, CDynamicStringAccessor, CManualAccessor and CNoAccessor; CRowset (moving both ways, GetData and SetData, Insert, Delete, Update and Undo) and CNoRowset; CDBPropSet, CDBPropIDSet and CDBErrorInfo. afxoledb.h: COleDBRecordView, a form view over a CRowset<> that moves with the record commands and writes the form back to the row. tests/oledbtest drives both against an OLE DB provider written in the test, and checks that every object, row handle and accessor is released. Windows only: the portable layer has no OLE DB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
33 lines
792 B
Plaintext
33 lines
792 B
Plaintext
// oledbtest.rc - resources for oledbtest.
|
|
#include <windows.h>
|
|
#include <afxres.h>
|
|
#include "oledbtest.h"
|
|
|
|
IDR_MAINFRAME MENU
|
|
BEGIN
|
|
POPUP "&Record"
|
|
BEGIN
|
|
MENUITEM "&First Record", ID_RECORD_FIRST
|
|
MENUITEM "&Previous Record", ID_RECORD_PREV
|
|
MENUITEM "&Next Record", ID_RECORD_NEXT
|
|
MENUITEM "&Last Record", ID_RECORD_LAST
|
|
END
|
|
END
|
|
|
|
IDD_ROW DIALOG 0, 0, 160, 64
|
|
STYLE WS_CHILD
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
LTEXT "ID:", -1, 7, 9, 30, 8
|
|
EDITTEXT IDC_ID, 45, 7, 40, 12, ES_AUTOHSCROLL
|
|
LTEXT "Name:", -1, 7, 25, 30, 8
|
|
EDITTEXT IDC_NAME, 45, 23, 100, 12, ES_AUTOHSCROLL
|
|
LTEXT "Score:", -1, 7, 41, 30, 8
|
|
EDITTEXT IDC_SCORE, 45, 39, 40, 12, ES_AUTOHSCROLL
|
|
END
|
|
|
|
STRINGTABLE
|
|
BEGIN
|
|
IDR_MAINFRAME "OleDbTest\n\nOleDbTest\n\n\nOleDbTest.Document\nOleDbTest Document"
|
|
END
|