- 博客(17)
- 资源 (8)
- 收藏
- 关注
原创 'AddressOf' expression cannot be converted to 'Long' because 'Long' is not a delegate type.解决办法
编写钩子程序时,在代码:hHook = SetWindowsHookEx(WH_MOUSE_LL, AddressOf HookProc, App.hInstance, 0)处出现错误,提示AddressOf expression cannot be converted to Long because Long is not a delegate type. SetW
2009-11-03 17:49:00
1656
2
原创 Visual Studio制作安装包
1、点击File->New Project 选择Other Project Types->Setup and Deployment当中的Setup Project,Name写上安装包的名字SetupMyApp,Solution选择Add to Solution,Location可以不变,点击OK 2、进入File System Editor(Solution Explore
2009-10-30 16:27:00
3542
原创 VB .Net 利用FTP.exe上传文件至FTP服务器
Public Class Form1 Private Sub CmdTrans_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdTrans.Click Dim psi As New System.Diagnostics.ProcessStartInfo
2009-09-14 17:02:00
4057
2
转载 IT人必读:写给浮躁的IT同仁(请不要做浮躁的人)
1.不要看到别人的回复第一句话就说:给个代码吧!你应该想想为什么。当你自己想出来再参考别人的提示,你就知道自己和别人思路的差异。 2.初学者请不要看太多太多的书那会误人子弟的,先找本系统的学,很多人用了很久都是只对部分功能熟悉而已,不系统还是不够的。 3.看帮助,不要因为很难而自己是初学者所以就不看;帮助永远是最好的参考手册,虽然帮助的文字有时候很难看懂,总觉得不够直观。
2009-07-24 11:20:00
1385
4
原创 硬盘安装ubuntu
我的电脑原先有Windows和Redhat双系统,我想把Redhat换成Ubuntu,在Windows下右击“我的电脑”,选择管理,进入磁盘管理,把RedHat所在的分区直接格式化或者删除分区。下载grub4dos(非源码)解压后,将grldr和menu.lst放到C盘根目录将下载的ubuntu ISO文件解压,提取 initrd.gz 和 vmlinuz ,和 ISO 一起放到C
2009-07-17 13:42:00
1394
2
原创 FreeBSD snmptrapd.conf配置详解
这个文件在/usr/local/share/snmp/底下,如果我没有记错的话,默认应该没有这个文件的,你可以通过snmpconf命令来配置snmptrapd.conf – configuration file for the NET-SNMP notification receiver##################################################
2009-05-19 17:30:00
10667
原创 FreeBSD启动某服务错误后静止不动,解决办法
可能是我在/etc/rc.conf让某服务启动时设置错误,造成FreeBSD启动那个服务时,报错后一直停在那里,没法进入系统。于是我重新启动系统,进入单用户模式,提示:Enter full pathname of shell or RETURN for /bin/sh:直接按回车,这时不能使用ee,vi等命令使用mount -a命令,提示文件系统需要修复之类的于是fsck -y后,
2009-05-19 14:16:00
1179
原创 Ubuntu下安装Python2.6.1以及Tkinter
我是先装好Python,后来要用到Tkinter才装的1.安装Python2.6.1:dumeifang@dumeifang-desktop:~$ suPassword:root@dumeifang-desktop:/home/dumeifang#wget http://www.python.org/ftp/python/2.6.1/Python-2.6.1.tgz--14:2
2009-04-01 14:40:00
16158
原创 trixbox common_functions.php 314 file_exists(/proc/scsi/scsi) the file does not exist on your machine
common_functions.php 314 file_exists(/proc/scsi/scsi) the file does not exist on your machine的解决办法:切换目录:cd /var/www/html/maint/modules/15_ppsysinfo/includes/os/将class.Linux.inc.php文件备份:cp class.
2008-12-25 10:50:00
1307
原创 金诚所致,金石为开 中英对照
Faith moves mountains Liguang was a widely known general in Ancient China李广是中国古代家喻户晓的将军He was good at riding and toxophily他擅长骑马和射箭People all called him Flying General for his braveness因为他勇敢善战,人们都称
2008-11-26 10:16:00
1547
翻译 htons(), htonl(), ntohs(), ntohl()
将多字节整数类型的数据,从主机的字节顺序转化为网络字节顺序原型:#include uint32_t htonl(uint32_t hostlong);uint16_t htons(uint16_t hostshort);uint32_t ntohl(uint32_t netlong);uint16_t ntohs(uint16_t netshort); 描述:不同的计算机里对它们的多字
2008-11-24 10:09:00
9062
2
原创 The False Use of SVN
I wanted to move some folders to another new folder(suppose the name is A).So I cutted them, and then pasted them in the new folder A(the new folder had not been submited to the svn).Finally I submi
2008-10-10 19:46:00
881
转载 C中的Volatile用法
volatile 影响编译器编译的结果,指出,volatile 变量是随时可能发生变化的,与volatile变量有关的运算,不要进行编译优化,以免出错,(VC++ 在产生release版可执行码时会进行编译优化,加volatile关键字的变量有关的运算,将不进行编译优化。)。 例如: volatile int i=10; int j = i; ... int k = i; volatile 告诉编
2008-10-08 14:45:00
1529
2
原创 Virtual Box占用CPU太大
偶尔间想换个虚拟软件玩玩,于是选择了Virtual Box。结果在装虚拟机和使用过程中,CPU占用率一直居高不下,很是郁闷。这样子做其他事情根本就是不可能了。带着好奇之心使用,却带着郁闷之心卸载掉。心想,还是VMWARE好啊。
2008-09-24 17:22:00
4969
原创 error while loading shared libraries的解決方法
在linux下运行程序时,发现了error while loading shared libraries这种错误,一时间不知道解决办法,在网上搜索,终于解决了: ./tests: error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory出现
2008-09-22 19:04:00
275721
47
原创 hda vs sda
前段时间编译linux内核,网上资料都说编译完后,修改lilo.config,其中有一段配置为:root=/dev/hda2,看我自己的lilo配置,仿佛应该为sda。从网上查了一下hda和sda的差别,把英文论坛上的解释摘过来。IDE hard disks (well, devices, actually) are hd. SCSI devices (and kernel-level emu
2008-09-12 16:23:00
8681
转载 linux内核
vmlinuzvmlinuz是可引导的、压缩的内核。“vm”代表“Virtual Memory”。Linux 支持虚拟内存,不像老的操作系统比如DOS有640KB内存的限制。Linux能够使用硬盘空间作为虚拟内存,因此得名“vm”。vmlinuz是可执行的Linux内核,它位于/boot/vmlinuz,它一般是一个软链接。 vmlinuz的建立有两种方式。一是编译内核时通过“make
2008-09-12 15:29:00
1136
2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人