Archive for the 编程 Category

桌面IE图标无法删除的解决办法及IE主页被劫持的修复

Posted on 六月 18, 2010 by 荒野无灯

中招状况: 桌面ie图标删除不了,右键点击只有”属性“ 、打开等三个东东,没有删除、重命名什么的。 分别用VC 和 reg 写了解决这个讨厌鬼的东东: VC版: reg版: PS:就在我刚才在更新... Continue Reading

简单的月历程序

Posted on 六月 4, 2010 by 荒野无灯

在MS vs 2008 下编译通过。 今天的音乐: 类似爱情——萧亚轩 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990... Continue Reading

RGB和十六进制颜色值互转小工具(win32)

Posted on 六月 2, 2010 by 荒野无灯

前面写过一篇 《RGB和十六进制颜色值互转》 ,用的是纯ansi C ,这次也是用C语言实现,不过是用VC 做的win32窗口程序。 工具本身实用性不大,做这个只是为了学习VC,呵呵。 在vs 2008 专业版下... Continue Reading

VC 中的数据类型(更新中……)

Posted on 六月 1, 2010 by 荒野无灯

The following table contains the following types: character, integer, Boolean, pointer, and handle. The character, integer, and Boolean types are common to most C compilers. Most of the pointer-type names begin with a prefix of P or LP. Handles refer ... Continue Reading

关于VC中的TCHAR和char

Posted on 六月 1, 2010 by 荒野无灯

TCHAR is defined as wchar_t in a Unicode build, but as char in a non Unicode build. So if you’re not using Unicode (i.e. don’t have _UNICODE defined in the project’s preprocessor settings), then you can simply pass in the TCHAR str[2... Continue Reading

VC Unicode C与ANSI C部分函数对照

Posted on 六月 1, 2010 by 荒野无灯

最近折腾VS 2008,发现仅会C语言还不够,得会VC 中的C语言。 C源文件的最顶部一定要加: 1#include "stdafx.h" win32 窗口程序入口点为: 1234int APIENTRY _tWinMain(HINSTANCE hInstance,     &nb... Continue Reading

CGL库——cgi网页开发好帮手

Posted on 五月 26, 2010 by 荒野无灯

说明:CGL是一个很轻量级的CGI C库,提供了一些接口,让用户能很容易的操作动态网页,比如读取Session, Get, Post等变量。 以前只知道用PHP等脚本语言可以写动态网页,还没有用C语言写过。最... Continue Reading

ubuntu linux下编译安装gd-2.0.11出错

Posted on 五月 15, 2010 by 荒野无灯

12345wget http://www.boutell.com/gd/http/gd-2.0.11.tar.gz tar zxvf gd-2.0.11.tar.gz cd gd-2.0.11 sudo ./configure –prefix=/usr/local/gd2 sudo make make时出错了: 123456789101112cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include/freetype2 -... Continue Reading

C语言学习——计算某年某月某日是星期几的函数

Posted on 五月 10, 2010 by 荒野无灯

这个事情如果要用PHP来实现,那是相当简单的事。 GOOGLE了一下网上的解决办法,发现都讲得相当复杂,有的甚至涉及到相当复杂的算法。今天看《Pointers on C》一书,里面的一句话提醒了我。... Continue Reading

RGB和十六进制颜色值互转

Posted on 五月 3, 2010 by 荒野无灯

昨天修改fcitx的颜色时发现了一个麻烦,fcitx配置文config中使用的颜色是RGB值的形式,而我目前只有十六进制值的。 因为当时已经是12点多了,学校已经断网了,不能上网找在线转换工具 ,我... Continue Reading