I have tried:
while (System::Runtime::InteropServices::Marshal::ReleaseComObject(worksheet_instance) > 0) ;
workbook_instance->Close(true, "Dummy.xlsx", Missing::Value);
while (System::Runtime::InteropServices::Marshal::ReleaseComObject(workbook_instance) > 0) ;
workbook_instance->~Workbook();
exApp_instance->Quit();
exApp_instance->~Application();
But it does not terminate the excel application (I still see it in the task manager). As a try, I would like to do something like
workbook_instance = NULL;
but it is not accepted. Any suggestion? Thank you.