Home |
RTTarget-32 Programming Manual Running Win32 Programs without Win32 Running a Program on the Target Running Demos with Command Line Tools Running Demos in Microsoft Visual Studio Running Demos in the Borland Delphi IDE Using a Standard PC as a Target Using a Standard PC as a Target for GUI Demos Using the AMD Élan SC400 Evaluation Board Using the AMD Élan SC520 Evaluation Board Using the RTOS32Win Virtual Target Using the Real-Time Hypervisor Target Program Msvccrt Compiling and Linking with On Time RTOS-32 |
Program MsvccrtMsvccrt demonstrates the use of statically linked Microsoft run-time system DLLs. Because the name of the run-time system DLLs depends on the version of the used Microsoft compiler, the Visual Studio .NET/2003/2005/2008/2010/2012/2013/2015/2017/2019 versions of this demo must be configured before they will build successfully. Open file Msvccrt.cfg and change: #ifndef COMPILER_VERSION #error Please specify the Microsoft Visual C++ version ... #endif to: #define COMPILER_VERSION "X.YY" where "X.YY" must be replaced with the version of your compiler according to this table:
This customization is not required for the command line version of this demo as the Nmake.exe version is used here to determine the compiler version. If the Microsoft Visual C++ 6.0 run-time system is used (file Msvcrt.dll), the application must set the OS version information to the values expected by Msvcrt.dll. This must be done in an the Init function in Msvccrt.cpp. Please see the comments in Msvccrt.cpp and function RTSetVersionExA for details. This demo create a custom system DLL. Unlike other demos with a custom system DLL, Msvccrt builds it such that it contains the complete Win32 API supported by On Time RTOS-32 plus a hand-selected set of On Time RTOS-32 native API functions. The list of these functions is contained in file NativeExported.txt. Please add function names to this file as needed.
|