Hey guys,

I'm programming a tool for creating PowerPoint slideshows from an images directory.

I get the error "Error HRESULT E_FAIL has been returned from a call to a COM component" on the second line of this code:

ApplicationClass powerpoint = new ApplicationClass();
Presentation ppt = powerpoint.Presentations.Add(MsoTriState.msoFalse);

I looked everywhere and I couldn't find a solution, please help!