xWizard Usage
A C/C++ program can be easily wrapped with a Tcl extension. Extension Wizard (xWizard) will help you generate interface code for Tcl extensions. It can generate C/C++ object interface of loadable extension for Windows, Linux, and Unix. It can save you a lot of time to write a Tcl extension, for example, with thousands commands. xWizard is very easy to use.
xWizard required tktable and tkwizard. To use xWizard you can run xwizard.tcl in the xwizard folder or in the samples/extension/xwizard folder of MyrmecoX Professional.
Suppose you have generated a MyPackage.cpp file with the xWizard 2.0, following steps show you how to create a project and compile MyPackage.cpp with VC++.
- Start VC++, Open File/New menu and Select
New Project "Wind32 Dynamic-Link Library"; Project name: MyPackage; Location: samples/wizard
- Active Project/Add To Project/Files add file
MyPackage.cpp
- Active Project/Setting/Link set
In object/library modules add tclstub83.lib for stub enable lib or tcl83.lib for stubless lib
|