Office automation through VC++ using MFC Class from TypeLib results into large number of compilation errors

When trying to Automate Excel, Word, etc using VC++ (MFC based application) in Visual Studio 2010 we generally perform the following steps –   1-Go to Visual Studio 2-Click New Project 3-Expand Visual C++ tree node 4-Choose MFC 5-Select MFC Application 6-Enter project name, click OK 7-Choose a dialog based project 8-Click Finish 9-The bare bone…

0