Framework Client Sample
This sample demonstrates how to use the wRTOS Configuration and Control library in a Visual Studio C/C++ project. This library provides configuration and control APIs for the wRTOS real-time Subsystem (RTSS) and real-time components (NL2, TCP/IP stack, etc.) These APIs offer functionality like that of the wRTOS Managed 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 demonstrates how to utilize several Native Framework APIs, including error and warning detection and setting size information in structures.
Source Files
| File | Description |
|---|---|
NativeFrameworkClient.cpp
|
Source file. |
|
|
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
- Open the appropriate solution file (
VS<Visual Studio Version>\NativeFrameworkClient.sln) in a supported version of Visual Studio. - Select the desired Solution Configuration and Solution Platform in the IDE.
- 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:
- NativeFrameworkClient\VS<Visual Studio Version>\x64\Release\NativeFrameworkClient.exe
- NativeFrameworkClient\VS<Visual Studio Version>\x64\Debug\NativeFrameworkClient.exe
- NativeFrameworkClient\VS<Visual Studio Version>\Release\NativeFrameworkClient.exe
- NativeFrameworkClient\VS<Visual Studio Version>\Debug\NativeFrameworkClient.exe
Remarks
This sample changes the current configuration of the wRTOS Virtual Network, Subsystem, and Exception Handling. Once you have finished running this sample, use wRTOS Settings to reset these configurations.