MFC Automation tlb tlh tli [英] MFC Automation tlb tlh tli
本文介绍了MFC Automation tlb tlh tli的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道如何适应microsoft office excel 2003的环境。把#importC:\\Program Files \\ Microsoft Office \\Office11 \\ EXCEL.EXE 在stdafx.h中?但它无法奏效。
CreateDispatch(_T(Excel.Application))返回0。为什么?
I do not know how to fit the environment of microsoft office excel 2003. Put "#import "C:\\Program Files\\Microsoft Office\\Office11\\EXCEL.EXE" " in "stdafx.h" ? But it can not work.
"CreateDispatch(_T("Excel.Application"))" return 0 .Why?
推荐答案
因为它不是进行MS Excel自动化项目的正确方法。
请参阅这些链接了解详情:
http://support.microsoft.com/kb/178781 [ ^ ]
使用C ++的MS Office OLE自动化 [ ^ ]
最后一个是关于MS Word,但自动化技术是相同的。
Because it is not the right way to do MS Excel automation project.
Please refer these links for details:
http://support.microsoft.com/kb/178781[^]
MS Office OLE Automation Using C++[^]
The last one is about MS Word, but an automation technique is the same.
这篇关于MFC Automation tlb tlh tli的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文