Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154 In VS – project properties – in the Build tab – platform target =X86