如何在执行程序中保存用户注册...(C#) [英] how to save user registration in the exe... (C#)

查看:102
本文介绍了如何在执行程序中保存用户注册...(C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这有可能吗?

我意识到,要求他们在程序运行时输入数据并将其保存在可执行文件本身中已成为现实. (或者是吗?)

I realize that asking them to enter data when the program runs and saving it in the executable file itself is out. (Or is it?)

现在,我正在考虑尝试使用php构建程序服务器端,并使其包含一个单独的文本文件,其中将包含该信息.这似乎勉强可行,尽管我会学到很多东西来实现它.

Right now I'm considering trying to build the program server-side with php and have it incorporate a separate text file which would contain the information. This seems marginally feasible, though I would have quite a bit of learning to accomplish it.

我希望能找到一些其他的想法来实现这一目标.

I was hoping for some other ideas of how I might accomplish this.

我对单独的配置或文本文件或将数据放入Windows注册表不感兴趣.我只是在寻找可以完全成为可执行文件一部分的解决方案.

I am not interested in separate configuration or text files or putting data in windows registry. I am only looking for solutions where it can be quite-solidly a part of the executable.

有人对此有任何经验吗?

Does anybody have any experience with this?

谢谢.

推荐答案

完全有可能,这就是自解压zip文件的工作方式.

Its perfectly possible, that's how self-extracting zip files work.

基本上,您可以根据需要在可执行文件的末尾添加尽可能多的内容.然后,您的程序可以在磁盘上打开自己的文件,然后将其读回.

Basically, you can add as much stuff to the end of the executable file as you want. Your program can then open its own file up on disk and read it back.

这篇关于如何在执行程序中保存用户注册...(C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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