会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
久龄
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
12
下一页
2019年7月30日
C++之MD5加密(签名)
摘要: 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 久龄
阅读(2601)
评论(0)
推荐(0)
2019年6月24日
C++之加密机访问
摘要: 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 久龄
阅读(365)
评论(0)
推荐(0)
2019年5月7日
字符串截取
摘要: 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 久龄
阅读(337)
评论(0)
推荐(0)
2019年3月21日
C++之MFC基本设置
摘要: 1 设置单元格的值 1) 选中指定单元格,使用SetValue设置值 CellName.Format(_T("A%d"),i);//单元格的名称 range.AttachDispatch(sheet.GetRange(COleVariant(CellName),COleVariant(CellNam
阅读全文
posted @ 2019-03-21 15:56 久龄
阅读(1266)
评论(0)
推荐(0)
2019年3月11日
C++之操作Excel(抄录https://www.cnblogs.com/For-her/p/3499782.html)
摘要: MFC操作Excel 下面的操作基于Excel2003 一.初始化操作 1.导入类库 点击查看->建立类向导-> Add Class...\From a type Library...-> C:\Program Files\Microsoft Office\Office\EXCEL.EXE,接下来就
阅读全文
posted @ 2019-03-11 13:59 久龄
阅读(702)
评论(0)
推荐(0)
2019年2月26日
C++之图片旋转90,再保存
摘要: 下面测试代码只需要全部放在一个.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 久龄
阅读(2822)
评论(0)
推荐(0)
页面调用dll
摘要: 1:本地安装vs2010,有时报错缺少WindowsSP1更新包,下载安装即可。 2:安装完成后,打开VS2010, 3:文件--新建--项目,找到ATL项目(一种COM组件写法),输入项目名称,点击确定(本地我们以DLLDemo为例) 4:点击下一步之后,点击完成,可以看到如下的界面。 5:以上就
阅读全文
posted @ 2019-02-26 16:34 久龄
阅读(582)
评论(0)
推荐(0)
2019年2月14日
C++MFC之picture control控件铺满图片
摘要: 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 久龄
阅读(2591)
评论(0)
推荐(0)
2019年1月26日
C++中去掉string字符串中的\r\n等
摘要: string imagedata;imagedata = “dudau\r\ndadafca\r\n” CString Image; Image = imagedata.c_str(); Image.Replace("\\r\\n","");
阅读全文
posted @ 2019-01-26 11:42 久龄
阅读(8101)
评论(0)
推荐(0)
2019年1月23日
C++之map使用
摘要: 解析文件或者字符串,一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 久龄
阅读(1347)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
12
下一页
公告