随笔 - 121  文章 - 0  评论 - 11  阅读 - 74万

随笔分类 -  MFC

用VS2010编写的C++程序,在其他电脑上无法运行的问题
摘要:问题:在自己电脑上用VS2010编写的VC++程序(使用MFC库),不能在其他电脑上运行。双击提示: “无法启动此程序,因为计算机中丢失mfc100u.dll 尝试重新安装该程序以解决此问题。 解决方案: 方案1.采用静态编译 使用VS2010编译的程序在windows xp中运行时,经常会出现找不 阅读全文
posted @ 2017-08-31 16:54 feng..liu 阅读(5933) 评论(0) 推荐(0) 编辑
获取文件名和扩展名
摘要:#include <string.h>#include <stdio.h>int main(){ char filename[100] = "text.txt"; char *ext = strrchr(filename, '.'); if (ext) { *ext = '\0'; ext++; } 阅读全文
posted @ 2017-08-17 14:42 feng..liu 阅读(537) 评论(0) 推荐(1) 编辑
.ini配置CAN信息
摘要:#include <iostream> #include <windows.h>//这个头文件一定要添加,否则GetPrivateProfileString(...)函数无法使用 #include <stdio.h> using namespace std; typedef struct _CAN_ 阅读全文
posted @ 2017-08-15 21:23 feng..liu 阅读(424) 评论(0) 推荐(0) 编辑
.ini配置读取
摘要:ini文件的格式 格式 INI文件由节、键、值组成。 节 [section] 参数(键=值) name=value 注解 注解使用分号表示(;)。在分号后面的文字,直到该行结尾都全部为注解。 节 参数(键=值) 注解 VC中用函数读写ini文件的方法 ini文件(即Initialization fi 阅读全文
posted @ 2017-08-14 19:42 feng..liu 阅读(496) 评论(0) 推荐(0) 编辑
读取一个文件夹所有文件
摘要:#include <windows.h>#include <fstream>#include <iostream>#include <string>#include <iomanip>//不要忘记包含此头文件#include <stdio.h>#include<stdio.h>#include<wi 阅读全文
posted @ 2017-08-01 14:31 feng..liu 阅读(772) 评论(0) 推荐(1) 编辑
Unicode字符集和多字节字符集关系
摘要:在计算机中字符通常并不是保存为图像,每个字符都是使用一个编码来表示的,而每个字符究竟使用哪个编码代表,要取决于使用哪个字符集(charset)。 在最初的时候,Internet上只有一种字符集——ANSI的ASCII字符集,它使用7 bits来表示一个字符,总共表示128个字符,其中包括了英文字母、 阅读全文
posted @ 2017-08-01 13:44 feng..liu 阅读(556) 评论(0) 推荐(0) 编辑
MFC 按钮
摘要:((CButton *)GetDlgItem(IDC_RADIO1))->SetCheck(TRUE);//选上 ((CButton *)GetDlgItem(IDC_RADIO1))->SetCheck(FALSE);//不选上 ((CButton *)GetDlgItem(IDC_RADIO1) 阅读全文
posted @ 2017-08-01 13:43 feng..liu 阅读(692) 评论(0) 推荐(0) 编辑
读写文件
摘要:C++读写文件 #include <opencv/cv.h>#include <fstream>#include <iostream>#include <string>#include <opencv2/core/core.hpp>#include <opencv2/highgui/highgui. 阅读全文
posted @ 2017-08-01 11:32 feng..liu 阅读(253) 评论(0) 推荐(0) 编辑
遍历一个文件夹所有文件
摘要:利用FindFirstFile(),FindNextFile()函数历遍指定目录的所有文件 标签: c++ 2015-06-14 12:22 1561人阅读 评论(0) 收藏 举报 标签: c++ 2015-06-14 12:22 1561人阅读 评论(0) 收藏 举报 分类: c++(41) 分类 阅读全文
posted @ 2017-07-24 17:13 feng..liu 阅读(825) 评论(0) 推荐(0) 编辑
C++文件操作详解
摘要:C++ 通过以下几个类支持文件的输入输出: ofstream: 写操作(输出)的文件类 (由ostream引申而来) ifstream: 读操作(输入)的文件类(由istream引申而来) fstream: 可同时读写操作的文件类 (由iostream引申而来) 打开文件(Open a file)对 阅读全文
posted @ 2017-07-21 17:53 feng..liu 阅读(73634) 评论(0) 推荐(2) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示