如何编辑资源文件

发布于 2024-11-15 20:41:42 字数 99 浏览 3 评论 0原文

我正在用 C# 开发一个程序,我需要使用集成资源文件,它是 .txt 文件 我需要在按下按钮时将数据保存到其中,假设客户端将按下按钮 然后值“1”被保存在程序资源文件中的txt文件中

i am developing a program in C# and i need to use the integrated resource file it is .txt file
i need to save data to it when a button is pressed , lets say the client will press a button
and then a value of "1" is saved in that txt file which is in the program resource files

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

秋叶绚丽 2024-11-22 20:41:42

您完全错误地使用了资源。也就是说,您可以使用 更新资源我不知道它是否在 .NET 中公开,或者是否 但是,您必须使用 PInvoke,因为它没有在 .NET 中公开。 这里一篇文章将演示它的用法。

You're totally using resources wrong. That being said, you can change resources (add, delete, or modify) using UpdateResource. I don't know if it's exposed in .NET or if y You have to use PInvoke, however, as it's not exposed in .NET. Here's a post that will demonstrate it's use.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文