win32 StretchBlt 函数 代码测试

针对 《windows程序设计》第5版 第14章 win7 64位,创建一个MFC 对话框 程序, 在界面添加一个 按钮和 一个 spin control 控件 效果如下: Test按钮的点击事件代码如下: void CStretchBltTestDlg::OnBnClickedBtnTest() { // TODO: 在此添加控件通知处理程序代码 HWND h...
分类: 其他 发布时间: 07-04 23:04 阅读次数: 0

win32 CreateBitmap

The CreateBitmap function creates a bitmap with the specified width, height, and color format (color planes and bits-per-pixel). HBITMAP CreateBitmap( __in int nWidth, __in int nHeight, __in ...
分类: 其他 发布时间: 07-04 23:03 阅读次数: 0

win32 GetDeviceCaps

The GetDeviceCaps function retrieves device-specific information for the specified device. int GetDeviceCaps( __in HDC hdc, __in int nIndex ); Parameters hdc [in] A handle to the DC. nIndex...
分类: 其他 发布时间: 07-04 23:03 阅读次数: 0

Hokuyo,UST-10LX,网口类激光雷达使用

Hokuyo激光雷达UST-10LX: 如果使用的是USB接口的激光雷达,直接看ROS-wiki的教程就可以了: http://wiki.ros.org/hokuyo_node/Tutorials/UsingTheHokuyoNode 1.首先下载相关节点包,UST-10LX采用的接口是以太网接口,所以需要下载urg_node的包,$ sudo apt-get in...
分类: 其他 发布时间: 07-04 23:03 阅读次数: 0

error while loading shared libraries解决办法

error while loading shared libraries: librdkafka++.so.1: cannot open shared object file: No such file or directory 解决办法1,cd /etc/ 2,sudo ldconfig///////////////////////////////////////////////////////...
分类: 其他 发布时间: 07-04 23:02 阅读次数: 0

ros 安装depthimage_to_laserscan包并找到包

git clone --branch indigo-devel  https://github.com/ros-perception/depthimage_to_laserscan $catkin_make  $source devel/setup.bash$rospack profile
分类: 其他 发布时间: 07-04 23:02 阅读次数: 0

warning: control reaches end of non-void function

用gcc编译一个程序的时候出现这样的警告:warning: control reaches end of non-void function它的意思是:控制到达非void函数的结尾。就是说你的一些本应带有返回值的函数到达结尾后可能并没有返回任何值。这时候,最好检查一下是否每个控制流都会有返回值。 ...
分类: 其他 发布时间: 07-04 23:02 阅读次数: 0

Linux/Ubuntu下小技巧:以内容搜索文件

grep -rnw '/path/to/somewhere/' -e "pattern"其中/path/to/somewhere/要搜索的路径,pattern要搜索的内容
分类: 其他 发布时间: 07-04 23:02 阅读次数: 0

roslaunch的使用和编写

1、使用$ roslaunch package_name file.launch2、编写roslaunch文件是使用XML语言来描述节点以及相关参数的设置和软件的启动的。2.1 <launch> 标签<launch>标签是任何roslaunch文件的根元素。它的唯一目的是作为其他元素的容器。其包含的元素有:<node> 启动节点 <param> 对参...
分类: 其他 发布时间: 07-04 23:01 阅读次数: 0

Mac下一些小工具安装报错Note

最近的几个小工具安装:1> Mac 下移动硬盘安装Windows&Ubuntu最开始用的是VirtualBox, 安装时找不到移动硬盘路径。听朋友说ParallelsDesktop很不错,可以打LOL~ 于是尝试了这个安装。安装本身并不困难,唯一一个就是 移动硬盘的格式,先用Disk Utility格式成Mac默认格式,再进行安装。2> 1. brew 安装wget失败Juli...
分类: 其他 发布时间: 07-04 23:01 阅读次数: 0

Ubuntu 14.04 64位安装32位兼容包

问题描述我的操作系统是64bit版的Ubuntu 14.04,很多32bit的软件无法安装使用,因此希望通过安装32位兼容包解决。安装过程在Ubuntu 13.10之前,可以通过安装 ia32-libs 来支持32位软件。但是,该版本之后,Ubuntu就去掉了。不过可以通过安装替的32位兼容包来实现该功能。命令行中输入以下命令sudo apt-get install ia32-libs1返回的信息...
分类: 其他 发布时间: 07-04 23:01 阅读次数: 0

Ubuntu14.04编译Allwinner lichee 两个出错解决方法

1.host-m4-1.4.15In file includedfrom clean-temp.h:22:0,from clean-temp.c:23:./stdio.h:456:1:error: 'gets' undeclared here (not in a function)_GL_WARN_ON_USE(gets, "gets is a security hole - use fgets ...
分类: 其他 发布时间: 07-04 23:01 阅读次数: 0

autoconf-2.65 must be after `@defmac' to use `@defmacx'

autoconf-2.65根据以下补丁文件。修改DOC目录下的autoconf.texi (也就是去掉@c)1234567891011121314151617181920--- autoconf-2.65/doc/autoconf.texi 2009-11-05 10:42:15.000000000 +0800+++ autoconf-2.65/doc/autoconf.texi.new 2013...
分类: 其他 发布时间: 07-04 23:00 阅读次数: 0

WPF MVVM学习(二)

https://www.cnblogs.com/youngytj/p/4524763.html
分类: 其他 发布时间: 07-04 23:00 阅读次数: 0

Log4net常用配置文件

<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /> </configSections> <log4net> <root> <level value="DEBUG" />
分类: 其他 发布时间: 07-04 23:00 阅读次数: 0

你需要知道的Linux安全

1. 账号以及密码一定要复杂,密码需要符合这些规范:字符大于 10 个;至少包含大小写以及数字;密码中不能包含账号,不能包含自己的姓名全拼,不能有自己的生日数字,不能有自己的电话号码;密码要定期更换;不能把密码保存在记事本等文档中要用专业的存密码的软件保存。 2. 可以拿一台机器作为跳板机来登陆其他服务器,其他服务器做登陆 ip 限制。 /etc/shos.allow, /etc/hosts.deny 3. 能使用密钥尽量避免使用密码登陆。 vim /etc/ssh/sshd_config
分类: 其他 发布时间: 07-04 23:00 阅读次数: 0

interrupt()方法的简单理解

interrupt() 方法只是改变中断状态而已,它不会中断一个正在运行的线程。 这一方法实际完成的是,给受阻塞的线程发出一个中断信号,这样受阻线程就得以退出阻塞的状态。 更确切的说,如果线程被Object.wait, Thread.join和Thread.sleep三种方法之一阻塞,此时调用该线程的interrupt()方法,那么该线程将抛出一个 InterruptedException中断异常(该线程必须事先预备好处理此异常),从而提早地终结被阻塞状态。如果线程没有被阻塞,这时调用 int
分类: 其他 发布时间: 07-04 23:00 阅读次数: 0

首行缩进字符

我没有缩进。 方法1:用css代码控制。 text-indent: 2em; 我缩进了。 方法2:用空格代替,这个时候根据需要判断是否要输入空格的实体字符,比如要输入多个空格。 我缩进了。
分类: 其他 发布时间: 07-04 23:00 阅读次数: 0

学习之路03

1、document的相关属性介绍,下列方法都是元素的方法属性:   1)childNodes:表示元素的子节点,此属性有兼容性问题,配合NodeType使用(1:代表标签,3:代表文本节点),FF下空文本行也计算为子节点;   2)children:是childNodes的兼容版本,不包含空字符串节点;   3)parentNode:获取父节点元素(无兼容问题);   4)offsetParent:获取元素相对于谁定位的父元素;   5)firstChild:第一个子节点,此属性有兼容问题,
分类: 其他 发布时间: 07-04 23:00 阅读次数: 0

Java API学习(一) ArrayList源码学习

ArrayList在平常用的还挺多的,用起来十分舒服,顺手。这里来学习一下它的源码。 类定义 下面是类的定义: 1 public class ArrayList<E> extends AbstractList<E> 2 implements List<E>, RandomAccess, Cloneable, java.io.Serializable { 3 4 } 实现的接口还挺多的。 类属性 首先来看下一ArrayList的几个属性: 1. DEFAULT_CAPAC
分类: 其他 发布时间: 07-04 23:00 阅读次数: 0