摘要: x86 –>embeded so you you must familiar with x86 first… 阅读全文
posted @ 2013-08-01 20:30 一万零一时 阅读(126) 评论(0) 推荐(0) 编辑
摘要: MFC SDI: How do I create transparent SDI views?Q: How do I create transparent SDI views?A: One can make a the view of an MFC application transparent by handling 'CView::OnEraseBkgnd()' function and returning 'FALSE' instead of the default 'CView::OnEraseBkgnd()' call.Code:BOO 阅读全文
posted @ 2012-01-09 23:38 一万零一时 阅读(553) 评论(0) 推荐(0) 编辑
摘要: 有用的外企面试英语 2008-10-28 / Category:English [AD] Q: Can you sell yourself in two minutes? Go for it. (你能在两分钟內自我推荐吗?大胆试试吧!) A: With my qualifications and experience, I feel I am hardworking, responsible and diligent in any project I undertake. Your organization could benefit from my analytical and interp 阅读全文
posted @ 2011-08-21 20:16 一万零一时 阅读(221) 评论(0) 推荐(0) 编辑
摘要: gdb调试器用法GDB是GNU开源组织发布的一个强大的UNIX下的程序调试工具,GDB主要可帮助工程师完成下面4个方面的功能:启动程序,可以按照工程师自定义的要求随心所欲的运行程序。让被调试的程序在工程师指定的断点处停住,断点可以是条件表达式。当程序被停住时,可以检查此时程序中所发生的事,并追索上文。动态地改变程序的执行环境。不管是调试Linux内核空间的驱动还是调试用户空间的应用程序,掌握gdb的用法都是必须。而且,调试内核和调试应用程序时使用的gdb命令是完全相同的,下面以代码清单22.2的应用程序为例演示gdb调试器的用法。1 int add(int a, int b)2 {3 ret. 阅读全文
posted @ 2011-08-21 17:30 一万零一时 阅读(773) 评论(0) 推荐(0) 编辑
摘要: 写下linux下用emacs调用dgb调试的方法emacs中使用gdb说明C等价于ctrl M等价于alt1,编写 .c函数 test.c2,gcc一把 看看对不对 带上-ggcc -g -o test .debug test.c如果要用gdb调试器,必须使用g选项。3,#emacs //打开emacs(也可以先打开源码进行对照) (打开源码 #emacs test.c 然后水平切开窗口 C--x 3) M + x gdb 回车 //打开gdb 在gdb中输入file test.debug //打开文件进行调试4,list //列出源码 l 5 则光标显示在第五行5,b line //在lin 阅读全文
posted @ 2011-08-21 17:24 一万零一时 阅读(1296) 评论(0) 推荐(0) 编辑
摘要: 在emacs中用gdb调试c/c++还是很方便的,不过一直以来用惯了vc6,按起gud默认的按键来说确实不很方便,所以就作了一些按键映射来 模仿vc6的调试:(setq gdb-many-windows t)(global-set-key [f5] 'gdb)(global-set-key [C-f5] 'gud-run)(global-set-key [S-f5] 'gud-cont)(global-set-key [f7] 'compile)(global-set-key [f8] 'gud-print)(global-set-key [C-f8] 阅读全文
posted @ 2011-08-21 17:22 一万零一时 阅读(579) 评论(0) 推荐(0) 编辑
摘要: int main(void){ short int a = 0x1234; char *p = (char *)&a; printf('p=%#hhx\\n',*p); if(*p == 0x34) printf('Little endian \\n'); else if(*p == 0x12) printf('Big endian \\n'); else printf('Unknow endia... 阅读全文
posted @ 2011-06-14 21:10 一万零一时 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 转自 http://www.cppblog.com/zealsoft/archive/2006/06/13/8501.html 卸载Intel C++ Compiler后Visual C++ 6.0不能工作了(by gengxt2003 :提示的错误为Error spawning xicl6.exe 郁闷了好久) 前 段时间觉得好玩,安装了Intel C++ Compiler进行评估,现在评估结... 阅读全文
posted @ 2011-04-08 22:18 一万零一时 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 就在2007年,我毅然离开了微软,加入了创业者的队伍。像很多第一次创业的人一样,我对这种冒险非常的兴奋。同样也跟很多第一次创业的人一样,我茫然没有头绪。 我参加各种活动,聚会,研讨会,和西雅图本地的创业社区密切交往。当我到了硅谷后,我发现这里有更多的活动,聚会,更多的研讨会。在这个创业生态系统里,一切很忙、很活跃,我收获了大量的人们共享出来的知识和体验,我如饥似渴的享用着。 我还满腔热情的看了很... 阅读全文
posted @ 2011-04-06 20:29 一万零一时 阅读(105) 评论(0) 推荐(0) 编辑
摘要: The year is 2007, and I had just left Microsoft to dive into the startup world. Like many first time entrepreneurs, I was very excited about the adventure. And like many first time entrepreneurs, I d... 阅读全文
posted @ 2011-04-06 20:26 一万零一时 阅读(256) 评论(0) 推荐(0) 编辑