原创 Let your script window keep openning.
The window that runing script would be closed when srcript finished, bellow statement will keep the window openning:
原创 Use Makefile under Windows with VS
I tried using Makefile to compile the QT project on window these days, and found that we can following steps to achive:
原创 Make your function support multi args (paras).
void Reporter::record(unsigned int outType, RPT_MSGTYPE messageType, const char* format, ...) { va_list args; /
原创 將 cygwin 加入到自己的工程
偶爾看到了一個別人點子,覺得挺好,記錄下來,也許以後用得上。 有這樣一個產品(項目),目錄下有很多的可執行文件(.exe)。GUI調用這些可執行文件是通過makefile來做的。另外,在整個項目融合了cygwin,使得在命令行下使用起
原创 sizeof 用法總彙
今天有人問了一個我看似乎是一個接近變態的sizeof用法:一個類C,C中有一個int, 一個char數據成員,一個虛函數,一個非虛函數,一個友元。文sizeof(C)是多少。當時我幾乎暈倒,int, char之類的可以補齊方式得到答案,但
原创 QT Linux下安裝手冊
QT Linux下安裝手冊 By Jackie on June 13, 2008 4:04 PM | 3 Comments | Previous | Next | EDIT
原创 Python 資源
首先是Python語言,可以到www.python.org 上找到很好的詳細信息和庫。 開發工具:在看了WingIDE,PythonWin,IDLE等一大堆的工具之後,我選擇了VisualWx工具,它可以通過託抓來
原创 Use python for C++ unit/function test
1. Load library: windows: 1 . import ctypes dll = ctypes.windll.LoadLibrary( ' test.dll ' ) 2 . import cty
原创 std::string的工具函數
一般來說,在處理字符串的時候通常會用到如下一些函數/方法:length、substring、find、charAt、 toLowerCase、toUp
原创 Debug&Release的不同
寫了幾段代碼,在Dubug下沒有任何的警告和錯誤信息,但Release以後卻出現2個警告,忽略以後運行,竟出現運行錯誤。 2警告: LINK : w
原创 python for cgi
First when using "print" to output information to browser, the first line must be "Content-type: text/html". the valu
原创 文件查找/刪除 練習
一點文件查找/刪除的代碼 /**//* Microsoft Corporation I/O functions: */#include <io.h>s
原创 PIL for construct a Image file from STRING or BUFFER
Can invoke Image.fromstring() to construct a Image file, but need NOTE that: Image.fromstring() only decodes pixel da