Have you configured your threading and "Use of MFC" options?