I suggest to create a bug report in our Issue Tracker and attach HAL code that is causing compile errors. Just looking at your code I don't see anything wrong with it so it likely should be investigated.
This is a forum entry for anyone receiving the error message "The code execution cannot proceed because VCRUNTIME140.dll was not found. Reinstalling the program may fix this problem".
T...