![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
问题解决
文章平均质量分 84
白錵錵
向往幸福
展开
-
CreateWindow返回Handle失败
Error: CreateWindow返回Handle失败 状况描述: CreateWindow创建窗体失败; GetLastError返回代码为0; 解决:1.RegisterClassEx中类名与CreateWindow类名一致.2.回调函数WndProc必须调用返回DefWindowProc.LRESULT CALLBACK原创 2008-09-20 09:52:00 · 1299 阅读 · 0 评论 -
linux chkconfig配置自启动shell
$vim /etc/init.d/temp2file_luncher.sh#!/bin/bash# chkconfig: 2345 66 36# /usr/bin/python#case "$1" in start) echo -n "Start: " su root -c "nohup python /home/pi/Running/temp2fi原创 2015-12-03 19:05:53 · 2239 阅读 · 0 评论 -
mount ntfs read-only.
$ sudo mount /dev/sda5 /mnt mount: warning: /mnt seems to be mounted read-only.sudo apt-get install ntfs-3g原创 2015-11-10 14:24:46 · 2071 阅读 · 0 评论 -
QTableView自动设置单元格的编辑状态
QTableView 单元格 编辑状态原创 2015-01-22 13:18:14 · 12255 阅读 · 0 评论 -
DirectFB环境搭建
下载DirectFBhttp://directfb.org/downloads/Core/DirectFB-1.2/原创 2014-08-13 14:54:09 · 1738 阅读 · 0 评论 -
c++移植IOS问题
Ld Build/Products/Debug-iphoneos/TestDemo.app/TestDemo normal arm64 cd /Users/mac/Desktop/cpp/txprj/app/ios/TestDemo export IPHONEOS_DEPLOYMENT_TARGET=7.1 export PATH="/Applications/Xcode.原创 2014-06-20 15:31:19 · 2296 阅读 · 0 评论 -
Python实现利用socket连接adb控制android设备
import socketHOSTNAME= 'localhost'PORT=5037TIMEOUT=15OKAY = 'OKAY'FAIL = 'FAIL'DEBUG = 1class AdbClient: def __init__(self,hostname=HOSTNAME,port=PORT): if DEBUG: pr原创 2014-07-03 19:41:49 · 8349 阅读 · 1 评论 -
Android杂谈--ubuntu系统下adb连接小米2
Android杂谈--ubuntu系统下adb连接小米2发现Ubuntu12.04不能连接小米开发,adb devices不能看到设备! 搞了一个上午才搞成功! 小米手机利用USB连接到Ubuntu 12.04系统。运行下面的命令:longskywang@bjb0503:~$ lsusbBus 001 Device 001: ID 1d6b:0002 Linux Founda转载 2014-06-27 22:29:45 · 1039 阅读 · 0 评论 -
Linux Mint apt-get proxy 代理设置
creating the file/etc/apt/conf.d./30proxy and adding there the proxyinfo:Acquire::http::proxy"http://IP:8080/";Acquire::ftp::proxy"ftp://IP:8080/";Acquire::https::proxy"https://IP:8080/";转载 2014-06-26 17:37:59 · 3854 阅读 · 0 评论 -
关于linux系统中close()方法引发一起“血案”
close方法想必大家都是清楚并了解的,用于关闭文原创 2014-04-05 22:47:47 · 2958 阅读 · 1 评论 -
vs2010 The program '[5008] txic.exe: Native' has exited with code -1073741811 (0xc000000d).
今天在写代码时对项目进行清理并重新编译,麻烦出现了,编译正常,但在运行前报如下错误:The program '[5008] txic.exe: Native' has exited with code -1073741811 (0xc000000d).由于工程编译生成三个动态库与一个执行程序,最终将问题定位在动态库生成上面,觉得应该是工程配置问题,但尝试了很多方法,都不知道怎样解决,好在工原创 2013-11-28 17:40:45 · 4767 阅读 · 1 评论 -
U盘安装ubuntu
自己有个HP的老伙计,跟随我8年之久,也派不上大用场,准备给它换个Linux系统,手头有一个ubuntu12.04 ISO, 有个U盘,里面有装好的老毛桃PE启动盘,就用它搞定安装Ubuntu.1.在有老毛桃PE的U盘上建立一个文件夹ubuntu;2.在ubuntu-12.04-desktop-i386.iso中提取两个文件initrd和vmlinuz;3.利用grub工具生成引导原创 2013-11-24 20:46:40 · 3137 阅读 · 0 评论 -
在NDK中使用gtest
最近在搞NDK开发,用到GTest做UT,在Windows下可以正常运行,但NDK下的gtest使用,在网上没有找到相关资料,所以将过程记录下来备忘,或许也可以帮到遇到相关难题的同学们;原创 2013-11-22 11:34:15 · 3597 阅读 · 0 评论 -
设置CHtmlView是否允许弹出对话框(脚本异常)
CHtmlView::SetSilentCall this member function to set a value indicating whether any dialog boxes can be shown.void SetSilent( BOOL bNewValue );ParametersbNewValue If nonzero, dialog bo翻译 2008-12-31 09:33:00 · 1147 阅读 · 0 评论 -
STM32F1 GPIO操作宏封装
熟悉STM32的同学应该都知道,GPIO的操作使用频率很高,使用库函数比较麻烦,正点原子的示例代码中对于GPIO操作宏封装会方便许多。例如:PAout(0) = 1;if(PAin()){}但对于不同的GPIOx的操作还是比较麻烦,比如在函数参数传递GPIO PIN时需要两个参数,GPIOx和Pin_x。下面提供代码解决这个问题,给大家参考。#ifndef _HAL_GPIO_H_#...原创 2019-09-20 14:56:56 · 2751 阅读 · 0 评论