Skip to content

Latest commit

 

History

History
71 lines (60 loc) · 1.76 KB

File metadata and controls

71 lines (60 loc) · 1.76 KB
title DEFINE_COMMAND_EX | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
DEFINE_COMMAND_EX
dev_langs
C++
helpviewer_keywords
DEFINE_COMMAND_EX macro
ms.assetid d3e2ef20-1455-46d2-8499-8ab84bbb90a4
caps.latest.revision 7
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

DEFINE_COMMAND_EX

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

Syntax

  
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

Macros and Global Functions for OLE DB Consumer Templates