win32 StretchBlt 函数 代码测试
针对 《windows程序设计》第5版 第14章
win7 64位,创建一个MFC 对话框 程序,
在界面添加一个 按钮和 一个 spin control 控件
效果如下:
Test按钮的点击事件代码如下:
void CStretchBltTestDlg::OnBnClickedBtnTest()
{
// TODO: 在此添加控件通知处理程序代码
HWND h...
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 ...
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...
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...
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///////////////////////////////////////////////////////...
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
warning: control reaches end of non-void function
用gcc编译一个程序的时候出现这样的警告:warning: control reaches end of non-void function它的意思是:控制到达非void函数的结尾。就是说你的一些本应带有返回值的函数到达结尾后可能并没有返回任何值。这时候,最好检查一下是否每个控制流都会有返回值。 ...
Linux/Ubuntu下小技巧:以内容搜索文件
grep -rnw '/path/to/somewhere/' -e "pattern"其中/path/to/somewhere/要搜索的路径,pattern要搜索的内容
roslaunch的使用和编写
1、使用$ roslaunch package_name file.launch2、编写roslaunch文件是使用XML语言来描述节点以及相关参数的设置和软件的启动的。2.1 <launch> 标签<launch>标签是任何roslaunch文件的根元素。它的唯一目的是作为其他元素的容器。其包含的元素有:<node> 启动节点 <param> 对参...
Mac下一些小工具安装报错Note
最近的几个小工具安装:1> Mac 下移动硬盘安装Windows&Ubuntu最开始用的是VirtualBox, 安装时找不到移动硬盘路径。听朋友说ParallelsDesktop很不错,可以打LOL~ 于是尝试了这个安装。安装本身并不困难,唯一一个就是 移动硬盘的格式,先用Disk Utility格式成Mac默认格式,再进行安装。2> 1. brew 安装wget失败Juli...
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返回的信息...
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 ...
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...
Log4net常用配置文件
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
</configSections>
<log4net>
<root>
<level value="DEBUG" />
你需要知道的Linux安全
1. 账号以及密码一定要复杂,密码需要符合这些规范:字符大于 10 个;至少包含大小写以及数字;密码中不能包含账号,不能包含自己的姓名全拼,不能有自己的生日数字,不能有自己的电话号码;密码要定期更换;不能把密码保存在记事本等文档中要用专业的存密码的软件保存。 2. 可以拿一台机器作为跳板机来登陆其他服务器,其他服务器做登陆 ip 限制。 /etc/shos.allow, /etc/hosts.deny 3. 能使用密钥尽量避免使用密码登陆。 vim /etc/ssh/sshd_config
interrupt()方法的简单理解
interrupt() 方法只是改变中断状态而已,它不会中断一个正在运行的线程。 这一方法实际完成的是,给受阻塞的线程发出一个中断信号,这样受阻线程就得以退出阻塞的状态。 更确切的说,如果线程被Object.wait, Thread.join和Thread.sleep三种方法之一阻塞,此时调用该线程的interrupt()方法,那么该线程将抛出一个 InterruptedException中断异常(该线程必须事先预备好处理此异常),从而提早地终结被阻塞状态。如果线程没有被阻塞,这时调用 int
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
今日推荐
周排行