摘要: 1、fopen(打开文件) 表头文件 #include<stdio.h> 定义函数 FILE *fopen(const char * path,const char * mode); path:字符串包含欲打开的文件路径及文件名, mode:文件访问类型。 mode主要应用有: r 打开只读文件,该 阅读全文
posted @ 2016-03-11 15:28 风狼啸天 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 给C++初学者的50个忠告 1.把C++当成一门新的语言学习(和C没啥关系!真的。); 2.看《Thinking In C++》,不要看《C++变成死相》; 3.看《The C++ Programming Language》和《Inside The C++ Object Model》,不要因为他们很 阅读全文
posted @ 2016-03-09 17:27 风狼啸天 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 创建CListBox对象 CListBox m_ListBox;关联控件 ,同时注意行数从 0 开始计算1、向控件中添加内容 int AddString(LPCTSTR lpszItem); 如:m_ListBox.AddString(_T("123"));2、指定插入位置 int Inse... 阅读全文
posted @ 2014-10-08 23:49 风狼啸天 阅读(276) 评论(0) 推荐(0) 编辑
摘要: CIPAddressCtrl m_ipCtrl;1、获取控件IP值int GetAddress(byte& byteFirst, byte& byteTwo, byte& byteThree, byte& byteFour);int GetAddress(DWORD& dwAddress);byte... 阅读全文
posted @ 2014-10-07 22:13 风狼啸天 阅读(314) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-09-02 19:40 风狼啸天 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、IN 与between...and 操作符(1)in语句允许在where语句中设置多个值,即当条件符合in后面的内容都满足条件 select 列名 from 表名 where 列名 in (值1, 值2, ...) //该列中与括号内值相同时都符合条件(2)between 在where语... 阅读全文
posted @ 2014-08-23 00:03 风狼啸天 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1、查询语句 (1)select 列名, 列名, ... from 表名 例:setect * from 表名 获取表格中所有内容 (2)select distinct 列名, 列名, ... from 表名 //获取某列唯一不同的值 (3)select 列名... 阅读全文
posted @ 2014-08-21 21:00 风狼啸天 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1.CFileDialog 的 应用 CFileDialog::CFileDialog( BOOL bOpenFileDialog, LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREA 阅读全文
posted @ 2014-08-20 21:09 风狼啸天 阅读(249) 评论(0) 推荐(0) 编辑
摘要: CMFCListCtrl实现的功能:比较特别的就是通过CImage来扩展每行的高度 CMFCListCtrl m_lisTestResult;1、插入列(创建表格) m_lisTestResult.InsertColumn(0, _T("序号"), LVCFMT_CENTER, 50);2、填充... 阅读全文
posted @ 2014-08-19 21:00 风狼啸天 阅读(376) 评论(0) 推荐(1) 编辑