If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: Excel applications in MFC

I too have received this error when I added a new dialog to my application. I had mistakenly derived it from CDialogEx instead of CDialog. This added a #include <afxtoolbars.h> or some such header file line to my stdafx.h file. (I removed this line before replying to this post, so I don't remember exactly)

This caused a conflict with the definitions for excel automation header.

Removing the include file line in stdafx.h, and deriving from CDialog instead of CDialogEx solved this problem for me...

Hope this helps some poor hapless soul solve his problem... As a general hint, if such problems seem to be occurring after some recent code change to existing code, compare the two versions of code to zero in on such issues....