Excel 2003 giving annoying "Send/Don't Send" error when closing

I am accessing an instance of Excel 2003 through a Codegear C++ program I'm 
writing. The code looks something like this (not that it really matters all 
that much):

TExcelApplication* ea = new TExcelApplication(this);
ExcelWorkbookPtr ewbPtr = ea->get_ActiveWorkbook();

// do stuff...

delete ea; ea = 0;

I can connect to Excel and write to it just fine. However, when I try to 
disconnect from it and close/delete the Excel application instance, I get an 
annoying Excel error message that says, "Excel has encountered a problem and 
needs to close. We are sorry for the inconvenience." This isn't a problem; of 
course Excel needs to close! I'm the one that closed it!! 

What causes this superfluous error message to be displayed, and how do I 
disable it?
1/29/2010 2:31:01 AM
excel.misc 78881 articles. 5 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 47


Similar Artilces: