DEFINE_COMMAND_EX

Specifies the command that will be used to create the rowset when using the CCommand class. Supports Unicode and ANSI applications.

DEFINE_COMMAND_EX(x, wszCommand )

Parameters

  • x
    [in] The name of the user record (command) class.

  • wszCommand
    [in] The command string that will be used to create the rowset when using CCommand.

Remarks

The command string that you specify will be used as the default if you do not specify command text in the CCommand::Open method.

This macro accepts Unicode strings, regardless of the application type. This macro is preferred over DEFINE_COMMAND because it supports Unicode as well as ANSI applications.

Example

See BOOKMARK_ENTRY.

Requirements

Header: atldbcli.h

See Also

Concepts

Macros and Global Functions for OLE DB Consumer Templates