VS2010
Step one:
Project properties------>General------->Use of MFC---->Use MFC in a static library;
Step two:
Include afxcoll.h
VS2010
Step one:
Project properties------>General------->Use of MFC---->Use MFC in a static library;
Step two:
Include afxcoll.h