上一页 1 2 3 4 5 6 7 ··· 14 下一页

2020年7月28日

wpf 可调大小的子窗口

摘要: 这里介绍一个可以调节子窗口大小的例子: <Window x:Class="EdiltPush.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.m 阅读全文

posted @ 2020-07-28 14:33 Milo_lu 阅读(429) 评论(0) 推荐(0)

2020年7月15日

嵌入式printf函数运用基于ti 16位MCU

摘要: 今天看到有人提问说如何实现16mcu打印功能使用(基于IAR编译器).使用这里特意准备说一下如何基于iar编译环境下实现16位mcu打印功能运用printf。 要实现这个功能,只要两个步骤: 配置option选项,选择full dlib 申明函数fputc和fputs: /** * printf() 阅读全文

posted @ 2020-07-15 09:43 Milo_lu 阅读(307) 评论(0) 推荐(0)

2020年7月14日

md5实现对用户名与密码的保护

摘要: 这里我们说一下关于如何运用md5算法实现对用户名与密码的保护。 我们都知道,有一些应用程序需要以用户名与密码登录应用程序时,在应用程序后台就需要一个保存用户名与密码的数据库。这类数据库有,数据库,文件,服务器云台等。 我们为了更好的让大家理解md5算法保护重要信息,所以我们这里选用文件来作为用户名与 阅读全文

posted @ 2020-07-14 10:51 Milo_lu 阅读(430) 评论(0) 推荐(0)

2020年7月10日

c# md5 算法实现

摘要: 相对C#来说,md5算法就相对简单很多,因为 System.Security.Cryptography; 已经包含了md5算法。所以我们只需创建MD5类对象即可实现md5算法。下面举例说明: 例子:输入任意字符,打印出md5计算结果(16进制输出) using System; using Syste 阅读全文

posted @ 2020-07-10 15:32 Milo_lu 阅读(3309) 评论(0) 推荐(0)

define a struct

摘要: how to use a macro of structure ? Here I am listing steps for it by using a demo: macro a structure: #define structed_define \ { \ "this is a demo for 阅读全文

posted @ 2020-07-10 09:21 Milo_lu 阅读(155) 评论(0) 推荐(0)

2020年7月6日

file.open异常处理

摘要: 当打开一个不存在的文件名,那会导致读文件出现错误,导致程序崩溃。 为了避免类似问题,我们需要进行判断: //open file CFile file; file.Open("ReadMe.txt", CFile::modeRead,NULL);//open the file 文件打开返回是文件句柄, 阅读全文

posted @ 2020-07-06 12:03 Milo_lu 阅读(823) 评论(0) 推荐(0)

2020年7月3日

md5信息摘要算法 c++

摘要: 接上,用c++实现md5算法: #include <string.h> #include <stdio.h> #include <math.h> #include <stdlib.h> #include <float.h> #include <limits.h> #include <ctype.h> 阅读全文

posted @ 2020-07-03 17:06 Milo_lu 阅读(378) 评论(1) 推荐(0)

2020年7月2日

md5信息摘要算法 基于16位机器运行

摘要: MD5信息摘要算法(Message Digest Algorithm) md5是一种密码散列函数,可以生成128位(16字节)的散列值,用于确保信息传输完整一致。 这里举例如何在16机器上实现md5算法: md5.h 1 #ifndef MD5_H 2 #define MD5_H 3 4 typed 阅读全文

posted @ 2020-07-02 11:57 Milo_lu 阅读(347) 评论(1) 推荐(0)

2020年6月16日

c++ Ping 通过线程处理Ping功能(MFC)

摘要: Ping功能是测试网络是否连接的有效方式。通常我们需要通过ping来验证网络连接是否正常,这就需要我们经常用到ping功能。 ping是有一定的阻塞,如果频繁使用会导致应用程序出现阻塞现象,为了避免这种情况的发生,我们这里举例用线程的方式对网络进行ping来验证网络是否连接正常: UI布局 添加按键 阅读全文

posted @ 2020-06-16 14:15 Milo_lu 阅读(1216) 评论(1) 推荐(0)

2020年6月8日

c++ ping 功能实现(mfc)

摘要: 现在我们将代码移植到我们的mfc中,定义编辑款edit3为域名输入,IDC_IPADDRESS2为解析IP地址;Button1为启动测试控制键。 为button1添加bn_clicked事件回调函数: 设置button1文本context内容: CButton*pbutton = (CButton* 阅读全文

posted @ 2020-06-08 23:23 Milo_lu 阅读(1086) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 14 下一页

导航