Excel文件和C ++ [英] Excel files and C++
本文介绍了Excel文件和C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将C ++应用程序中的数据导出到Excel文件?我被发现了xlslib项目,但它只能在Windows上与MingW进行编译。我的目标平台是Windows(MVS2008)
How i can read\export data within a C++ application to Excel files? I was found the xlslib project, but it only compiles with MingW on Windows. My target platform is windows (MVS2008)
推荐答案
如果您遇到非托管C ++,需要直接与Excel通信,需要COM自动化界面。请参阅MSDN文章链接文本
If you're stuck with unmanaged C++ and need to communicate directly with Excel you'll need the COM automation interfaces. See the MSDN article link text
如果你想要新的管理互操作的表现力,我想你可能需要将C ++代码包含在一个互操作的DLL中。
If you want the expressive power of the new managed interop, I think you may need to wrap your C++ code in an interop dll.
这篇关于Excel文件和C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文