Automate Excel in VC++

  • Thread starter Thread starter Mikasan
  • Start date Start date
M

Mikasan

Guest
I was working on a MFC project in VS2008 which requires a feature of reading Excel. I have been trying to make it by following the [instruction][1] in MS Docs. However, after adding those classes and compiling the project, I got many many errors in a excel.tlh file, such as



C4430: missing type specifier - int assumed.

Note: C++ does not support default-int

C3203: _com_IIID unspecialized class template can't be used as a template

argument for template parameter '_IIID', expected a real type

C2504: '_IMsoDispObj'; base class undefined


There are more errors, but I am going to paste it here to avoid verbosity. Any suggestion for how this happened and how to solve it?

[1]: Automate Excel from MFC and Visual C++ to fill or obtain data using arrays - Office

Continue reading...
 
Back
Top