如何在退出前在textBox中保存文本 [英] how to save text in textBox before exit

查看:76
本文介绍了如何在退出前在textBox中保存文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何在textBox中保存文本,所以当我运行winform时,文本仍然存在吗?

我看到了关于此的内容,但主要是在C#和VB中..我想知道如何在VSc ++中做到这一点
在此先感谢


how can i save the text inside the textBox so when i run the winform the text is still there??

i saw tut about this but mostly in c# and VB.. i want to know how to do it in VSc++
thanks in advance

推荐答案

您将需要文本框的句柄,检索数据并使用fstream将其保存到磁盘.

试试此链接 http://www.cplusplus.com/reference/iostream /fstream/ [ ^ ]
You will need a handle to your textbox, retrieve your data and save it to disk using an fstream.

Try this link http://www.cplusplus.com/reference/iostream/fstream/[^]


这篇关于如何在退出前在textBox中保存文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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