Changed 'BOOL' to 'bool.' In LFmodel.cpp 'stdafx.h' refers to a visual studio compiler setting, 'VTDemo.h' is a file not present in vtCalc. Also in LFmodel.cpp, most math function are inoperable. They may be defined in VTDemo.h?