如何编辑资源文件 [英] how to edit a resource file

查看:139
本文介绍了如何编辑资源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发的C#程序,我需要使用集成资源文件是.txt文件
I需要时按下按钮将数据保存到它,可以说客户会按下一个按钮,
,然后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

推荐答案

您'完全重新利用的资源错了。话虽这么说,你可以使用的 UpdateResource 。 <罢工我不,如果它在.NET中的暴露或不知道如果y 你必须使用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.

这篇关于如何编辑资源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆