Intial version compiles but not completely work
Custom function compiles and runs simple example MSVC