I have an application in which I automate excel, its been a while since I
looked at it and I am having the problem that when the app is in debug
mode an access violation is thrown when I reach the following line
if(!xlApp.CreateDispatch("Excel.Application")) /// Access violation is here
AfxMessageBox("Unable to create dispatch for Excel");
In release mode every thing is working fine, does anyone have any ideas
what might be happening here?
Thanks in advance