winres.h instead of afxres.h. There are some cases (VS 2012 express etc) when afxres.h doesn't exist.
Use with_xxxxx (xxxxx is the package name) variables directly instead of the withval variable.