I would like to selectively compile certain sections of code depending
on the CVI version (5.5.1 or 7.0), by using preprocessor statements. Is there a macro constant I could
check, analogous to the run-time function GetCVIVersion()?
The value of _CVI_ macro is related to CVI version running: for version 7.1.1 _CVI_ = 711, for version 8.0.1 _CVI_ = 811 and so on. You can find this macro among other useful macros in Options >> Build Options >> Predefined macros