NetworkedPlanet | TMCore Engine API Guide |
The full source code for these examples can be found in the
examples/
directory of the TMCore distribution. The
directory contains both C# and VB.NET versions of the examples in the
subdirectories CS and VB respectively. Each example is provided in a
separate directory with its own project file. To compile and run an
example, open Visual Studio.NET and create a new blank solution; then
add the .csproj or .vbproj for the example to the solution. The project
can then be built using the Build > Build Solution menu item. If the
solution contains multiple projects, set the new example project to be
the start-up project by right clicking the project in the Solution
Explorer pane and selecting "Set as StartUp Project" from the pop-up
menu.
Some of the examples allow command line parameters to be specified. From within Visual Studio, you can assign the command line parameters to be used when running an example by bringing up the Properties pane for the project (right click on the project in the Solution Explorer and select "Properties"). In the Properties Pane select the item "Debugging" under "Configuration Properties" and in the field labelled "Command line arguments", enter the parameters. However, all of the example programs are written so that they can be run from within Visual Studio without specifying any command line parameters.
Finally, to run the project, press F5 or choose the Debug > Start menu item.
You may find that the project files contain an invalid reference to the TMCore assembly. You can check this by opening the "References" icon under the project name in the solution explorer of Visual studio. If you see the reference named "tmcore" with a yellow warning triangle next to it, then the reference is invalid and must be changed before you can successfully compile the project. To change the reference, delete the existing reference and then right click on the "References" icon and select
. In the dialog that is displayed, click and browse to the tmcore.dll that came with the TMCore installation. Finally, click the button to dismiss the dialog. You should now see the tmcore reference appear under "References" with no warning triangle next to it.