CWGENCLS is a command-line tool that generates wrapper classes for XLL add-ins. The generated code is written in C#.
Usage
CWGENCLS -i InformationFile -m ModelFile [options]
Parameter | Required | Description |
---|---|---|
-i InfoFile | Required | The full path and file name of the information file. |
-m ModelFile | Required | The full path and file name of the model file. |
-c ClientType | Optional | COM or VBA. If provided, only the class for the named client will be generated. If omitted, both classes will be generated. |
-o OutputFile | Optional | The file name (optionally including a path) of the output file. If omitted, then the project name will be used, e.g. MyAddin.cs. |
-d TargetDir | Optional | The directory that will contain the output file. If OutputFile is provided, and is rooted (i.e. contains a complete path), then this parameter will be ignored. If the directory provided is not rooted, then it will be relative to the directory containing the InformationFile. If TargetDir is omitted, then the directory containing the InformationFile will be used. |
Location
In the XLL+ Toolkit, CWGENCLS.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, CWGENCLS.EXE can be found in the bin sub-directory of the installation folder, e.g. C:\Program Files\Planatech\XllHost\2.0\bin.