CWGENINF is a command-line tool that generates skeleton information files for use by CWGENCLS.

Usage

CWGENCLS projectname namespace [outfile]
Parameter Required Description
projectname Required projectname is the name of the XLL+ add-in project, and is used for the names of the generated classes.
namespace Required namespace cis the namespace used for the generated classes.
outfile Optional outfile is the name of the information file that will be produced. If omitted, the project name will be used.

Location

In the XLL+ Toolkit, CWGENINF.EXE can be found in the bin sub-directory of the installation folder, e.g. C:\Program Files\Planatech\XllPlus\6.0\VS9.0\bin.

In the XLL Host installation, CWGENINF.EXE can be found in the bin sub-directory of the installation folder, e.g. C:\Program Files\Planatech\XllHost\2.0\bin.

Example

For example, a command like the following:

CWGENCLS MyAddin MyNamespace
will produce a file named MyAddin.Wrapper.xml containing something resembling the following:

CopyXML
<?xml version="1.0" encoding="utf-8"?>
<XllWrapper Name="MyAddin">
  <Clients>
    <Client Type="COM"
            Namespace="MyNamespace"
            Class=" MyAddin"
            ClassGuid="51922C8E-F57D-485F-91AD-7B6FB01E046B"
            Interface="IMyAddin"
            InterfaceGuid="F665828B-9914-41E5-9B74-42505F67A88D"/>
    <Client Type="VBA"
            Namespace="MyNamespace"
            Class="MyAddinVba"
            ClassGuid="14636546-A5DE-40F9-B02B-1847BC47C9E5"
            Interface="IMyAddinVba"
            InterfaceGuid="7CBD1C10-C089-4D34-8BC4-633B729C49C1"/>
  </Clients>
  <Functions>
    <Function ExportedName="MyAddin_VersionInfo"
              Wrap="Always"
              ReturnType="string[,]"/>
  </Functions>
</XllWrapper>