Compiler Error C2850

#pragma hdrstop cannot be nested in a function or definition

The hdrstop pragma cannot be placed inside the body of a function or definition.

Move the #pragma hdrstop statement to an area that is not contained in curly braces or parentheses.