I am using VC++ 2008 to automate PowerPoint. I follow the instructions in https://www.codeproject.com/Articles/2506/Automating-MS-Office-applications
Below is my code