This example provides the source code for a dotXSI converter.
Note XSI includes a compiled version of dotXSIConverter in XSI_HOME/Application/Plugins.
Location | |
Files |
plugin_stub.cpp
dotXSIConverter.cpp
dotXSIConverterCallback.cpp
dotXSIConverter.vcproj
GNUmakefile
dotXSIConverter.chm
|
To run the example
The dotXSIConverter example includes a help file that uses the compiled HTML Help format. On Linux, support for the compiled HTML Help format relies on the MainWin environment.
To view the compiled help on Linux:
In a terminal or shell window, source the .xsi file. By default, this file is located where the XSI program files are installed. For example:
source $XSI_HOME/.xsi_<xsi_version>
Run hh :
hh $XSISDK_ROOT/examples/workgroup/Addons/dotXSIConverter/doc/dotXSIConverter.chm
To print topics from HTML Help, you have to add printers to your MainWin environment. The printers must already be set up for your Linux computer before you can select them for use with MainWin.
To set up a printer in MainWin
In a terminal or shell window, source the .xsi file. By default, this file is located where the XSI program files are installed. For example:
source $XSI_HOME/.xsi_<xsi_version>
Run the MainWin Control Panel:
mwcontrol
XSI SDK includes a compiled version of dotXSIConverter. If you want to modify the code, you can rebuild the example by following these instructions.
To build the example on Windows
Open an XSI command prompt, and type devenv to start Visual Studio .NET.
Starting Visual Studio .NET from an XSI command prompt ensures that environment variables such as XSISDK_ROOT are set (otherwise you'll get build and link errors).
Tip To load the dotXSIConverter project from the command line, type:
devenv src\dotXSIConverter.vcproj
To build the example on Linux
In a shell (tcsh) window, type:
source $XSI_HOME/.xsi_<xsi_version>
Change directories to
src
To remove all intermediate files before building the example, run this command:
gmake clean
To compile the example, run this command:
gmake
This example uses the following keywords:
C++ example, import, export, dotXSI