About this task
This topic describes how to Build and Run the Demo (sample) program. A sample Microsoft Visual C++ project, amvtest_exe.vcxproj, is provided to build the sample program. Use this project as a basis for constructing projects for your own applications.Note: Depending on how you installed Visual C++, the INCLUDE, LIB, and PATH environment variables may not be automatically set when you install MSDEV. If they are not set, you will have to set them manually or run the following to set them before building any user programs.
for /F "tokens=* USEBACKQ" %F in (`"%PROGRAMFILES(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -property installationPath`) do set VSPATH=%F call "%VSPATH%\Common7\Tools\VsDevCmd.bat"
When you run the demo program, it requests class, resource and alarm data from the AMRP, then displays the requested information.
To build the sample program, do the following: