<afx.h>

Just create a console app with MFC support via the app wizard. But it would be better if you used the STL.