Hi there! It seems I forgot some nuances in my own old code - take a look please:
...
// Excel app initialization
_Application oApp;
oApp.CreateDispatch("Excel.Application");
if (!oApp)
{
AfxMessageBox("Can't run Excel.");
return;
}
...
So it works in my very old project (just compiled it from archive) but if try to copy/paste this part of code into another project - I receive "Can't run Excel" modal window while running my current project. I mean - same VM (Windows XP), same Visual Studio 6 and same Office (2003). So I already checked *.cpp and *.h files (excel9.cpp and excel9.h) - they are connected to the project. What could I have forgotten to check? Please help.