Edit

Share via


IDBCreateCommandImpl Class

Provides an implementation of the IDBCreateCommand interface.

Syntax

template <class T, class CommandClass >
class ATL_NO_VTABLE IDBCreateCommandImpl
   : public IDBCreateCommand

Parameters

T
The session object derived from IDBCreateCommandImpl.

CommandClass
Your command class.

Requirements

Header: atldb.h

Members

Interface Methods

Name Description
CreateCommand Creates a new command.

Remarks

An optional interface on the session object to obtain a new command.

IDBCreateCommandImpl::CreateCommand

Creates a new command and returns the requested interface.

Syntax

STDMETHOD(CreateCommand)(IUnknown * pUnkOuter,
   REFIID riid,
   IUnknown ** ppvCommand);

Parameters

See IDBCreateCommand::CreateCommand in the OLE DB Programmer's Reference.

Some parameters correspond to OLE DB Programmer's Reference parameters of different names, which are described in IDBCreateCommand::CreateCommand:

OLE DB Template parameters OLE DB Programmer's Reference parameters
ppvCommand ppCommand

See also

OLE DB Provider Templates
OLE DB Provider Template Architecture