1. 直接下載已編譯好的binary檔 QT binaries for windows,若要安裝其它較高版本 for vs2008,可到 qt-msvc-installer下載。
2. 解壓縮後,在環境變數User Variables加入 QTDIR=C:\Qt-4.4.3 及Path=C:\Qt-4.4.3\bin;.........
3. 安裝 QT for vs2008 addin
4. 在C:\Qt-4.4.3目錄下製作兩個文字檔「configure.cache」、「.qmake.cache」,這兩個檔是build source code產生的
configure.cache
view plain
CODE:
-platform
win32-msvc2008
-debug-and-release
-platform win32-msvc2008 -debug-and-release
.qmake.cache
view plain
CODE:
QMAKE_QT_VERSION_OVERRIDE = 4
OBJECTS_DIR = tmp\obj\debug_shared
MOC_DIR = tmp\moc\debug_shared
RCC_DIR = tmp\rcc\debug_shared
sql-plugins += sqlite
styles += windows plastique cleanlooks motif cde
imageformat-plugins [...]
登入webhostingpad ftp 時,顯示「421 Sorry, cleartext sessions are not accepted on this server」
修改 flashfxp 內的選項 Connection Type 為 FTP using Explicit SSL (Auth TLS),再次登入即可。
也可以用 curl 上傳
view plain
CODE:
@echo off
SET FILE=%1
IF NOT DEFINED FILE GOTO USAGE
echo "uploading the file %FILE%, please wait..."
curl --progress-bar -g -k --ftp-ssl -3 -T%FILE% -uuser:passwd ftp://123.111.1.1
EXIT /B 0
:USAGE
ECHO Usage: upload.exe file
以變數名稱當作函式名稱來呼叫
參考:Call Static Method With a String Name in C#
帶參數的方法參考: 谁能讲解一下c# 中关于MethodBase Invoke方法?
view plain
CODE:
System.Text.Encoding utf_8 = System.Text.Encoding.UTF8;
// This is our Unicode string:
string s_unicode = "abcéabc";
// Convert a string to utf-8 bytes.
byte[] utf8Bytes = System.Text.Encoding.UTF8.GetBytes(s_unicode);
// Convert utf-8 bytes to a string.
string s_unicode2 = System.Text.Encoding.UTF8.GetString(utf8Bytes);
MessageBox.Show(s_unicode2);
reference : C# to convert from utf-8 bytes to string and back
FreeCL(Free Control Library)是一個open source且free的Windows skin library,包含了常用的Windows標準元件、Shell元件、IE風格 menu 以及 dialog