1) Problem
for (CMyClasses::iterator it = Classes.begin(); it != Classes.end(); it++)
{
    HandleClass(xxx, &yyy, it);
 }
Comment:typedef vector<CMyClass *> CMyClasses; CMyClasses Classes;

2) Solution
for (CMyClasses::iterator it = Classes.begin(); it != Classes.end(); it++)
{
    HandleClass(xxx, &yyy, &*it);
 }  

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2313761&SiteID=1