OLE Automation worked in Delphi7, fails in Delphi 2010

Posted by Tom1952 on Stack Overflow See other posts from Stack Overflow or by Tom1952
Published on 2010-06-09T16:07:53Z Indexed on 2010/06/09 16:12 UTC
Read the original article Hit count: 597

Filed under:

This line of code worked fine in Delphi 7:

 CreateOLEObject('Excel.Application');

but generates the exception below in Delphi 2010:

 Project raised exception class EOleSysError with message 'Invalid class string'.

What am I missing?

© Stack Overflow or respective owner

Related posts about delphi