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++ 和 gtkmm 制作一个简单的文本编辑器,我想知道如何使用“打开方式”使用该程序打开文本文件。为了更好地理解,假设我有一个名为“test.txt”的文本文件,我想用我的程序使用“打开方式”打开该文件。
在 Windows 上,这是一个注册表设置。您可以在程序中修改注册表设置,但除此之外,由操作系统来启动您的程序。