简体   繁体   English

通过C ++向Office文档添加密码

[英]Add a password to Office documents through C++

I am trying to add a password to a Office (lets say Word) document with C++ but got lost. 我正在尝试使用C ++向Office(让我们说Word)文档添加密码,但是却迷路了。 I read about "Office Automation Using Visual C++" but figured that's not what I'm looking for. 我阅读了有关“使用Visual C ++的Office自动化”的信息,但发现这不是我想要的。 I can't seem to figure out how to do so, Any help would be appreciated, thanks. 我似乎不知道该怎么办,谢谢您的任何帮助。

VBA (Visual Basic for Applications) is built into Word. Word内置了VBA(Visual Basic for Applications)。 It will be far easier to use that instead of using Office Automation from an external C++ program. 使用它会比使用外部C ++程序中的Office Automation轻松得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM