Native Framework Client Sample

Description

This sample demonstrates how to use the RTX64 Native Framework library in a Visual Studio C/C++ project. The Native Framework library provides configuration and control APIs for the RTX64 real-time Subsystem (RTSS) and real-time TCP/IP stack. These APIs offer functionality similar to that of the RTX64 Managed Code Framework library. The project settings show how to configure the project’s Additional Include Directories, Additional Library Directories, and Additional Dependencies settings to find the necessary header file and import library. The project’s source code shows how to use several Native Framework APIs, including how to detect errors and warnings and set size information in structures.

Source Files

File Description
NativeFrameworkClient.cpp Source file.
stdafx.cppReadMe.txt Text file containing a description of the sample and a list of provided files.
stdafx.h Header file.
targetver.h Header file.
stdafx.cpp C++ Source file.

Building the Sample

  1. Open the appropriate solution file (VS<Visual Studio Version>\NativeFrameworkClient.sln) in a supported version of Visual Studio.
  2. Select the desired Solution Configuration and Solution Platform in the IDE.
  3. Click Build > Build Solution.

Running the Sample

The sample can be run in a Windows console by executing one of the following binaries with no command line arguments:

Remarks

This sample changes the current configuration of the RTX64 Virtual Network, Subsystem, and Exception Handling. Once you have finished running this sample, use the Control Panel to reset these configurations.

APIs Referenced

RtfwAPI