Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通过我的 C++ 应用程序打开一个 PDF 文件。所以我想打开一个PDF程序并将文件名作为参数传递给它。我怎样才能做到这一点?
在 Windows 上,它是一个控制台应用程序。
在 Windows 上使用ShellExecutewithopen命令,只需将路径传递给 PDF 文件。系统会做剩下的。
ShellExecute
open
这取决于您使用的操作系统。在 linux 中,您的答案在这里http://www.gidforums.com/t-3369.html