Using the RTX RTDLL Template

RTX provides two templates in the Templates/Visual C++ branch in the supported versions of Microsoft Visual Studio:

The RTX project contains four build configurations: Windows Release, Windows Debug, RTSSRelease, and RTSSDebug. The RTX RTDLL Template sets the project settings for each configuration according to the program and project options that you specify. The template can also provide a basic C/C++ program framework with which to work. This program framework can include RTX program elements, which contain C/C++ code to create RTX objects and demonstrate their use.

NOTE:  RTX only supports absolute pathnames.

Sections in this Topic:

Creating a RTX RTDLL

RTX RTDLL template provides the structure for creating RTX RTDLLs. Use the following procedure to create an RTX project using any RTX RTDLL template in Microsoft Visual Studio.

To create an RTX RTDLL project:

  1. From the Visual Studio menu bar select File > New > Project.

  1. Select Visual C++ from the Templates list.
  2. Select RTX RTDLL from the templates area.
  3. This template is a single-page dialog that displays the default project settings and provides optional application and program settings. To accept the current settings, click Finish. Optionally, you can specify other options and libraries that you want to include in your RTX application project:

  1. If these are all the options needed, click Finish to create the project. Otherwise, continue editing program settings for this application.

When Provide a program framework is checked, you can optionally add elements to the program framework. These code segments show proper usage of Real-time API function calls and can serve as examples of how to set up these elements.  Areas in the element code that need to be customized by the user are indicated by "TO DO" comments. You can select more than one type of programming element for a single project. The following table provides the available program elements.

NOTE:  When Provide a program framework is un-checked, these options are grayed out.

    Element Description

    Periodic timer thread

    Transforms the basic Export function already in the program framework into TimerThread Export.

  1. Click Finish. This generates the RTX solution and project according to the options you selected.

Resulting Configurations

Four configurations for creating DLLs are generated in Visual Studio when you create a project using the RTX RTDLL template:

Compiler and Linker Options

For a complete list, see Compiler and Linker Options for Visual Studio.

IntervalZero.com | Support | Give Feedback