Command Table Compiler Command Line Flags

Successful compilation of a single Command Table Configuration (.Ctc) Files produces a binary resource file for a VSPackage that Visual Studio 2008 merges with other VSPackage-contributed resources to give the Visual Studio integrated development environment (IDE) its merged appearance. The compiler accepts some command line parameters.

Nota

Beginning with Visual Studio 2008 SDK, use XML Command Table (.vsct) files instead of command table configuration (.ctc) files to define how menus and commands appear in your VSPackages. For more information, see XML-Based Command Table Configuration (.vsct) Files.

Command Line Parameters

To view basic command table compiler help, type one of the following at the command prompt:

ctc

or

ctc /?

or

ctc -?

Doing this returns:

Microsoft (R) Shell Command Table Compiler Version 2.10.1311
Copyright (C) Microsoft Corp 1997 - 2000. All rights reserved.

Syntax: ctc <infile> [<outfile>] [-C<cpp-command>] [-D<preprocessor-define>]* [-I<include-path>]*

The characters - (dash) and / (forward slash) are both accepted notation for indicating command line parameters.

All flags are case-sensitive.

The following are the acceptable flags and what they mean:

Flag (delineated by / or -)

Description

C

Override the default preprocessor command. For example, -Ccl will invoke “cl” (cl.exe) as the preprocessor if cl.exe is on the executable path.

D

Indicates preprocessor definitions.

I

Indicates preprocessor includes.

L####

Indicates the code page that is required to decode the text into Unicode. #### is the number of the code page. This flag is new in Visual Studio 2008.

nologo

Suppress the display of product information.

Nologo

Suppress the display of product information.

See Also

Concepts

How VSPackages Add User Interface Elements