Trim the list of #include directives at the top of your migrated files and replace them with an #include directive for STDAFX.H. Guidelines:
For SHOWDIB, trimming the lists involves replacing all #includes of windows.h with:
#include <stdafx.h>
For other applications, you may need to more closely examine what STDAFX.H includes to see if it affects other includes in your application.