上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 76 下一页
摘要: 安装OPENCV安装CMAKE设置如下勾上 INSTALL_C_EXAMPLES点Configure点 Generate就会生成VS2010工程选中自己感兴趣的例子编译即可。 阅读全文
posted @ 2013-02-04 14:36 ahuo 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 使用CWinApp类的WriteProfileString、GetProfileString等函数。1、如果不调用SetRegistryKey(),CWinApp 会把信息保存系统目录的的Test.ini文件中(C:\Windows\Test.ini)2、如果调用SetRegistryKey(<company name>),CWinApp 会把信息保存系统目录的的注册表中HKEY_CURRENT_USER\Software\<company name>\Test\<section name>\<value name>.注:SetRegistryK 阅读全文
posted @ 2013-01-28 09:58 ahuo 阅读(2274) 评论(0) 推荐(1) 编辑
摘要: 弹出非模态对话框很简单,使用Create+ShowWindow就好了。但是如果在线程中这样做,那可是有问题的~(可以自己去试试)所以,我们就需要自定义消息映射和函数,通过SendMessage来创建非模态对话框。使用非模态对话框切记要懂得及时销毁,否则产生大量野指针就坏了!建立非模态对话框代码:123CMyDlg *myDlg=new CMyDlg(); // CMyDlg为对应对话框类myDlg->Create(IDD_MY,NULL); // IDD_MY为对应对话框ID号myDlg->ShowWindow(SW_SHOW);在线程中建立非模态对话框代码:自定义一条消息,在线程 阅读全文
posted @ 2013-01-28 09:18 ahuo 阅读(3894) 评论(0) 推荐(0) 编辑
摘要: 在windbg中通过s命令在内存中查找字符串或者关键字节码信息0:005> s -u 00c00000 L1000000 "你好 20:15 2012/6/620:15 2012/6/6"01960d28 4f60 597d 0020 0032 0030 003a 0031 0035 `O}Y .2.0.:.1.5.查看内存01960d2801960d28 00 00 00 00 00 00 00 00 30 00 3a 00 31 00 35 00 20 00 ........0.:.1.5. .01960d3a 32 00 30 00 31 00 32 00 2f 阅读全文
posted @ 2013-01-21 15:08 ahuo 阅读(534) 评论(0) 推荐(0) 编辑
摘要: uboot1.1.6\include\configs\smdk6410.h#define CONFIG_BOOTCOMMAND"nand read 0xc0008000 0x200000 0x500000;bootm 0xc0008000"#define CONFIG_BOOTCOMMAND "nand led-start;nand erase ;fatload mmc 0:1 0x50008000 u-boot.bin;nand write.uboot 0x50008000 0 0x200000;fatload mmc 0:1 0x50008000 zImage 阅读全文
posted @ 2013-01-02 18:49 ahuo 阅读(2326) 评论(0) 推荐(0) 编辑
摘要: 编译gdbserver~/gdb-6.5/gdb/gdbserver$ ./configure --target=arm-linux --host=arm-linuxmake CC=/usr/local/arm/4.3.2/bin/arm-linux-gcc开发板上运行IP:开发板IP 程序是本地程序./gdbserver 192.168.1.20:1234 gdbtest主机:arm-linux-gdb ./ gdbtesttarget remote 192.168.1.20:1234 阅读全文
posted @ 2012-12-29 23:39 ahuo 阅读(219) 评论(0) 推荐(0) 编辑
摘要: arch/arm/mach-s3c64xx/mach-smdk6410.c/* * Configuring Nandflash on SMDK6410 */struct mtd_partition ok6410_nand_part[] = { { .name = "Bootloader", .offset = 0, .size = (1 * SZ_1M), .mask_flags = MTD_CAP_NANDFLASH, }, { .name = "Kernel", .offset = (1 * SZ_1M), .size = (5*SZ_1M) , . 阅读全文
posted @ 2012-12-23 19:01 ahuo 阅读(221) 评论(0) 推荐(0) 编辑
摘要: U-boot的环境变量值得注意的有两个: bootcmd 和bootargs。u-bootcmd 前面有说过bootcmd是自动启动时默认执行的一些命令,因此你可以在当前环境中定义各种不同配置,不同环境的参数设置,然后设置bootcmd为你经常使用的那种参数。u-bootargs bootargs是环境变量中的重中之重,甚至可以说整个环境变量都是围绕着bootargs来设置的。bootargs的种类非常非常的多,我们平常只是使用了几种而已,感兴趣的可以看看这篇文章说的很全:http://blog.chinaunix.net/u2/79570/showart_1675071.html。boo.. 阅读全文
posted @ 2012-12-23 00:12 ahuo 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 显示这个提示:CS8900 Ethernet chip not found ,表示不支持网络,对应驱动没有被移植替换dm9000x和smdk6410 重新编译u-boot既可http://files.cnblogs.com/ahuo/u-boot-Net.rar 阅读全文
posted @ 2012-12-22 23:07 ahuo 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 查找:在当前目录下的.jsp文件中查找“alert”字符串grep "alert" *.jsp在当前目录及其多个子目录中查找文件portal.jspfind . -name "portal.jsp" -print在当前目录及其多个子目录下的.jsp文件中查找字符串"alert"find . -name "*.jsp" -print | xargs grep "alert"替换:在当前目录下的.jsp文件中把字符串"password"替换成"pwd"perl 阅读全文
posted @ 2012-12-22 00:31 ahuo 阅读(622) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include "windows.h"class CLock{private: CRITICAL_SECTION m_section;public: CLock(void) { InitializeCriticalSection(&m_section); } ~CLock(void) { DeleteCriticalSection(&m_section); } void lock() { EnterCriticalSection(&m_section); } void unLock() { 阅读全文
posted @ 2012-12-17 21:41 ahuo 阅读(1112) 评论(0) 推荐(0) 编辑
摘要: extern int __argc;extern TCHAR** __argv;修改为:调试,静态库 MFC 应用程序的"调试 Multithreaded"。发行版中,静态库的 MFC 应用程序的"Multithreaded"。 阅读全文
posted @ 2012-12-16 20:15 ahuo 阅读(476) 评论(0) 推荐(0) 编辑
摘要: Runtime Library四个选项的含义:(D表示Dll,而d表示debug版本)MT(Multi-threaded):多线程版本MTd(Multi-threaded debug):多线程调试版本MD(Multi-threaded Dll):多线程Dll版本MDd(Multi-threaded debugdebug):多线程调试Dll版本正常情况下,当我们用VC编译出一个Console/Win32类型项目的exe程序时(这里暂不考虑MFC程序),会依赖于msvcrxx.dll文件(xx为不同VC对应的版本号,VC2005为80,VC2008为90,VC2010为100),发布程序的时候,就 阅读全文
posted @ 2012-10-29 14:29 ahuo 阅读(570) 评论(0) 推荐(0) 编辑
摘要: http://files.cnblogs.com/ahuo/boost_asio.rar 阅读全文
posted @ 2012-10-08 15:35 ahuo 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1、 Linux中一些头文件的作用:<assert.h>:ANSI C。提供断言,assert(表达式)<glib.h>:GCC。GTK,GNOME的基础库,提供很多有用的函数,如有数据结构操作函数。使用glib只需要包含<glib.h><dirent.h>:GCC。文件夹操作函数。struct dirent,struct DIR,opendir(),closedir(),readdir(),readdir64()等<ctype.h>:ANSI C。字符测试函数。isdigit(),islower()等<errno.h>: 阅读全文
posted @ 2012-09-18 23:51 ahuo 阅读(2097) 评论(0) 推荐(0) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 76 下一页