上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: 我们先定义一些常见类型变量借以说明int i = 100;long l = 2001;float f=300.2;double d=12345.119;char username[]="程";char temp[200];char *buf;CString str;_variant_t v1;_bs... 阅读全文
posted @ 2015-05-21 14:17 qq921201008 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 借助开源文件:Com_class.h程序实例:http://pan.baidu.com/s/1qWHUQmS使用步骤: 1.包含Com_class.h头文件 2.#include "Com_class.h"class CComDlgDlg : public CDialog{// Co... 阅读全文
posted @ 2015-05-21 12:00 qq921201008 阅读(1444) 评论(0) 推荐(0) 编辑
摘要: 文章来源:http://www.cnblogs.com/daqiang/archive/2011/12/04/2275646.htmlSTM32的定时器是个强大的模块,定时器使用的频率也是很高的,定时器可以做一些基本的定时,还可以做PWM输出或者输入捕获功能。时钟源问题:名为TIMx的有八个,其中T... 阅读全文
posted @ 2015-04-24 17:06 qq921201008 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 文章来源:http://blog.chinaunix.net/uid-21658993-id-3129667.html在STM32中,有五个时钟源,为HSI、HSE、LSI、LSE、PLL。其实是四个时钟源,如下图所示(灰蓝色),PLL是由锁相环电路倍频得到PLL时钟。 ①、HSI是高速内部时钟,... 阅读全文
posted @ 2015-04-21 18:23 qq921201008 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 文章来源:http://blog.sina.com.cn/s/blog_4fed55ce0100j7nd.html一:综述STM32 目前支持的中断共为 84 个(16 个内核+68 个外部), 16 级可编程中断优先级的设置(仅使用中断优先级设置 8bit 中的高 4 位)和16个抢占优先级(因为... 阅读全文
posted @ 2015-04-21 17:45 qq921201008 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 文章来源:http://blog.chinaunix.net/uid-24219701-id-4088004.htmlSTM32IO口中断的一些基础概念。STM32的每个IO都可以作为外部中断的中断输入口,这点也是STM32的强大之处。STM32F103的中断控制器支持19个外部中断/事件请求。每个... 阅读全文
posted @ 2015-04-21 16:36 qq921201008 阅读(673) 评论(0) 推荐(0) 编辑
摘要: 1.查看INI文件是否存在,不存在则创建INI文件 //查看是否有First.ini文件 CFileFind fd; if(fd.FindFile(".First.int")) { MessageBox("找到文件"); } else { ... 阅读全文
posted @ 2015-01-23 11:38 qq921201008 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 1.在Form1类中添加以下代码 private delegate void UpdateStatusDelegate(string status); private void UpdateStatus(string status) { this.t... 阅读全文
posted @ 2015-01-03 16:46 qq921201008 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 1.将DLL复制到工程下 2.添加如下代码 阅读全文
posted @ 2015-01-03 01:18 qq921201008 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 静态链接库的使用方法: 示例代码:http://pan.baidu.com/s/1i303qZV 1.创建工程 2.向工程中添加.cpp 和.h 3.头文件代码 #ifdef MyDLL_API #else #define MyDLL_API _declspec(dllexport) #endif MyDLL_API int Add(int a,int b); MyDLL_API in... 阅读全文
posted @ 2015-01-02 23:17 qq921201008 阅读(228) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页