Is Excel installed on your computer?

Top  Previous  Next

Here's a function which will tell you if Excel is installed on your computer. You need Excel if you use Inventor tabular iParts.

 

bool ExcelIsPresent ()

/*

This looks very simply to see if Excel is installed

*/

{

   CLSID ExcelClsid;

   HRESULT hRes = CLSIDFromProgID (L"Excel.Application", &ExcelClsid);

   if (FAILED(hRes)) {

       return false ;

 

   } else {

       return true ;

   }

}

Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)