Editing the User Record

In the dialog header file TestProvDlg.H, you must edit the user record as shown below. The COLUMN_ENTRY macros specify the ordinal, type, length, and data member for the two strings. The consumer uses this information to specify which columns to bind when it calls IAccessor::CreateAccessor.

////////////////////////////////////////////////////////////////////////
// TestProvDlg.h

class CProvider
{
// Attributes
public:
   char   szCommand[256];
   char   szText[256];

// Binding Maps
BEGIN_COLUMN_MAP(CProvider)
   COLUMN_ENTRY(1, szCommand)
   COLUMN_ENTRY(2, szText)
END_COLUMN_MAP()
};

Next, you must add a handler for the Run button.

Back to Implementing an OLE DB Template Consumer