Check if you converted it correctly. Compare your code with the VC++ version of RTest in the MyStrategy.cpp example.