![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MFC
hduzn
weibo.com/hduzn
展开
-
MFC 读写文件
写入文件:CFile file("abc.txt", CFile::modeWrite|CFile::modeCreate); //打开abc.txt文件CString str = "abcedkwfjwfj";file.Write(str, str.GetLength()); //写入文件file.Close(); 读取文件:CFile file("abc.txt", C原创 2010-04-23 10:55:00 · 599 阅读 · 1 评论 -
在vs2008中添加lib文件
下面以添加ws2_32.lib文件为例方法一(直接添加代码):直接在.cpp文件中,添加#pragma comment(lib, "ws2_32.lib");即可。(ws2_32.lib即为你要添加的lib文件) 方法二(在vs工具栏中添加):1.项目(project) -> TcpSrv属性(TcpSrv properties) (其中TcpSrv为工程名)原创 2010-05-04 11:26:00 · 1525 阅读 · 2 评论 -
MFC中界面实现xp风格
MFC中界面实现xp风格(嵌入式的)。 1.在工程目录下新建个文本文档,随便你在编译器里新建,或者直接用记事本新建。取名manifest.xml(当然名字是随便你取的)。2.用记事本或者EditPlus等文本编辑器打开manifest.xml,在里面输入以下代码: <assembly xmlns="urn:schemas-microsoft-com:asm.v1"原创 2010-05-04 11:19:00 · 340 阅读 · 0 评论