[置顶] DataGridView控件使用笔记

摘要: 1、怎么获得当前选中行?例程:private: System::Void dataGridView1_CellClick(System::Object^ sender, System::Windows::Forms::DataGridViewCellEventArgs^ e) { int y=e->RowIndex; ...... }这是c++.net里面的类的成员函数,通过DataGridViewCellEventArgs^ e可以获得当前选中的行index。2、怎样使DataGridView里显示的数据充满整个表格可以通过设置列或者行的宽度来实现,我在函数是这样设置的 this-&g 阅读全文

posted @ 2012-02-13 16:24 博远小记 阅读(234) 评论(0) 推荐(0)

2013年1月27日

linux内核的生成过程, vmlinux调试分析

摘要: http://blog.chinaunix.net/uid-2630593-id-2530229.html1. 依据arch/arm/kernel/vmlinux.lds 生成linux内核源码根目录下的vmlinux,这个vmlinux属于未压缩,带调试信息、符号表的最初的内核,大小约23MB; arm-linux-gnu-ld -EL -p --no-undefined -X -o vmlinux -T arch/arm/kernel/vmlinux.lds arch/arm/kernel/head.o arch/arm/kernel/init_task.o init/built-in.o 阅读全文

posted @ 2013-01-27 12:43 博远小记 阅读(587) 评论(0) 推荐(0)

2013年1月20日

git基础知识

摘要: 转http://www.cnblogs.com/zhangjing230/archive/2012/05/09/2489745.html 阅读全文

posted @ 2013-01-20 18:18 博远小记 阅读(95) 评论(0) 推荐(0)

vmlinux,vmlinuz,uImage,zImage,bzImage之间的异同[转]

摘要: 转自:http://www.cnblogs.com/hnrainll/category/283519.htmllinux内核镜像格式 一、Linux内核镜像格式 Linux内核有多种格式的镜像,包括vmlinux、Image、zImage、bzImage、uImage、xipImage、bootpImage等. (1)kernel镜像格式:vmlinux vmlinuz是可引导的、可压缩的内核镜像,vm代表Virtual Memory.Linux支持虚拟内存,因此得名vm.它是由用户对内核源码编译得到,实质是elf格式的文件.也就是说,vmlinux是编译出来的最原始的内核文件,未压缩.这种格 阅读全文

posted @ 2013-01-20 17:55 博远小记 阅读(455) 评论(0) 推荐(0)

python map内建函数

摘要: map(function, iterable, ...) Apply function to every item of iterable and return a list of the results. If additional iterable arguments are passed,function must take that many arguments and is applied to the items from all iterables in parallel. If one iterable is shorter than another it is assum.. 阅读全文

posted @ 2013-01-20 16:41 博远小记 阅读(125) 评论(0) 推荐(0)

linux panic and bug

摘要: http://blog.csdn.net/tommy_wxie/article/details/7313949 阅读全文

posted @ 2013-01-20 16:01 博远小记 阅读(110) 评论(0) 推荐(0)

sudo 命令

摘要: http://blog.csdn.net/snowolf_538/article/details/6706066 阅读全文

posted @ 2013-01-20 15:59 博远小记 阅读(92) 评论(0) 推荐(0)

2012年2月15日

Fedora 下更改应用程序下的程序链接

摘要: 最近想更改一下系统面板“应用程序"下显示的程序的快捷方式,在网上搜集了很多资料,现在自己整理一下,以备以后所需。1、linux下与程序快捷方式有关的文件在/usr/share/applications下的.desktop文件 每一个程序都有与它相对应的快捷方式可以通过修改文件的方式来设置自己想要的程序快捷方式。2.在系统-首选项-主菜单来修改但是有些linux系统发行版没有安装此功能,所以需要首先手动安装一下。命令如下:yum install alacarte安装之后就可以轻松的更改菜单啦 阅读全文

posted @ 2012-02-15 18:34 博远小记 阅读(172) 评论(0) 推荐(0)

2012年2月14日

linux下repair filesystem 模式修复方法

摘要: 最近在挂载文件系统的时候,不小心将/etc/fstab文件更改错误了,导致系统不能够正常的加载,只能在repair filesystem下进行文件修复但是在此环境下,/etc/fstab文件是写保护的,不能够直接进行编辑,所以应该首先以读写的方式重新加载根文件系统mount -o remount,rw /之后就可以重新编辑/etc/fstab文件了在网上查阅资料发现,非正常关机也可以引起磁盘分区问题,不能正常进入系统,修改方法如下fsck /dev/hdax 后reboot进入或者只用fsck来修复,只管y回车即可。 阅读全文

posted @ 2012-02-14 11:13 博远小记 阅读(1004) 评论(0) 推荐(0)

2011年12月9日

c++中浅拷贝和深拷贝

摘要: 先看这个例子:#include<iostream>using namespace std;class a{public:a(int m){b=m;cout<<"class a"<<endl;}~a(){cout<<"delete class a"<<endl;}friend void display(a x){cout<<x.b<<endl;}private:int b;};void main(){class a a1(3);display(a1);system(&quo 阅读全文

posted @ 2011-12-09 12:57 博远小记 阅读(162) 评论(0) 推荐(0)

导航