上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: md5.h : #include <stdio.h> #include <stdlib.h>#include <time.h> #include <string.h> void MD5Digest(char *pszInput, unsigned long nInputSize, char *psz 阅读全文
posted @ 2019-07-30 14:55 久龄 阅读(2497) 评论(0) 推荐(0) 编辑
摘要: WininetHttp.h: #pragma once#include <iostream>#include <windows.h>#include <wininet.h> using namespace std; //每次读取的字节数#define READ_BUFFER_SIZE 4096 en 阅读全文
posted @ 2019-06-24 14:28 久龄 阅读(345) 评论(0) 推荐(0) 编辑
摘要: int main(){#if 0 // 字符串截取1 string strSrc = "name:orange\r\nscore:96\r\nid:03c648578a6e79bdeaf2cb8ee2651424\r\ne-mail:xxxx@xx.com\r\n"; string::size_ty 阅读全文
posted @ 2019-05-07 09:23 久龄 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1 设置单元格的值 1) 选中指定单元格,使用SetValue设置值 CellName.Format(_T("A%d"),i);//单元格的名称 range.AttachDispatch(sheet.GetRange(COleVariant(CellName),COleVariant(CellNam 阅读全文
posted @ 2019-03-21 15:56 久龄 阅读(1197) 评论(0) 推荐(0) 编辑
摘要: MFC操作Excel 下面的操作基于Excel2003 一.初始化操作 1.导入类库 点击查看->建立类向导-> Add Class...\From a type Library...-> C:\Program Files\Microsoft Office\Office\EXCEL.EXE,接下来就 阅读全文
posted @ 2019-03-11 13:59 久龄 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 下面测试代码只需要全部放在一个.cpp文件里就行 //#include "stdafx.h"#include <stdio.h>#include <string>#include <math.h>#include <windows.h> using namespace std; #define PI 阅读全文
posted @ 2019-02-26 16:44 久龄 阅读(2659) 评论(0) 推荐(0) 编辑
摘要: 1:本地安装vs2010,有时报错缺少WindowsSP1更新包,下载安装即可。 2:安装完成后,打开VS2010, 3:文件--新建--项目,找到ATL项目(一种COM组件写法),输入项目名称,点击确定(本地我们以DLLDemo为例) 4:点击下一步之后,点击完成,可以看到如下的界面。 5:以上就 阅读全文
posted @ 2019-02-26 16:34 久龄 阅读(563) 评论(0) 推荐(0) 编辑
摘要: UpdateData(true); //更新路径公共变量 CString m_path = m_edit1.GetString(); if(m_path=="") { MessageBox("111111","111",0); return; } CRect rect; m_pictureStati 阅读全文
posted @ 2019-02-14 18:40 久龄 阅读(2506) 评论(0) 推荐(0) 编辑
摘要: string imagedata;imagedata = “dudau\r\ndadafca\r\n” CString Image; Image = imagedata.c_str(); Image.Replace("\\r\\n",""); 阅读全文
posted @ 2019-01-26 11:42 久龄 阅读(7968) 评论(0) 推荐(0) 编辑
摘要: 解析文件或者字符串,一key跟keyvalue来存在map中,如下代码: test.h: #include <map>#include <vector> Class test { public: void list_Map(); private: map<string,string> pensonn 阅读全文
posted @ 2019-01-23 18:02 久龄 阅读(1325) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页