OpenXML SDK C++ Examples

主宰稳场 提交于 2019-12-10 10:53:00

问题


HI,

I'm trying to create a word document in C++ using OpenXML SDK, I'm facing problems in adding references and using namespace as most of the examples in the web are given based on C#.

1.How do I add references to project and also use namespaces(Ex - using namespace System.Xml;) in the code

Also please suggest any C++ examples links for OpenXML SDK.

Thanks in advance


回答1:


I don't know of any for the SDK, but if you're looking for C++ in .NET and working with Open XML (System.IO.Packaging, etc.), grab the C++/CLI samples and lab off of the Open XML Developer workshop content page. In fact, all the other stuff there is also very helpful in working with Open XML.




回答2:


C++ uses static objects, hence to interact with .netframework you must use managed objects. C++/CLI is the best one for this business. Where you integrate common language infrastructure with C++. Check the below link..

http://www.codeproject.com/KB/mcpp/quickcppcli.aspx



来源:https://stackoverflow.com/questions/5855399/openxml-sdk-c-examples

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!