原创 Symbian中TRAP問題

在Symbian中,如果在TRAP宏中放入的不是一個函數,而是一段代碼,並且這段代碼中有返回語句,那麼很可能產生E32User-CBase 63的panic。分析TRAP宏的定義就可以知道原因,下面是TRA

原创 Symbian SDK多次安裝路徑後綴名去除的方法

當Symbian SDK反覆安裝後,每次系統會自動在安裝的路徑後面加上計數值。例如第二次安裝Nokia S60 MR SDK時,系統默認會安裝到C:/Symbian/9.1/S60_3rd_MR_1下,而且結尾的_1無法去除。這對於許多I

原创 Office 2007正版驗證破解方法

網上流傳着無數的關於Office 2007正版驗證的破解方法,經本人驗證,下面的方法可以成功:1. 刪除C:/Windows/system32/OGAAddin.dll2. 用以下鏈接中提供的破解補丁替換C

原创 經典的位運算實例

1) int型變量循環左移k次,即a=a < <k |a>>16-k  (設sizeof(int)=16) (2) int型變量a循環右移k次,即a=a>>k |a < <16-k  (設sizeof(in

原创 文本文件編碼方式的簡單識別

 在實際編程中經常會碰到需要讀取一個文本文件的內容並將其顯示到程序中的情況。如果文件中所有的內容都以ASCII方式編碼固然簡單(通常包含英文字母和數字的文件,比如readme之類),但遇到包含其他語言字符,

原创 How to solve problem caused when the CRT library and MFC libraries are linked in the wrong order

SYMPTOMS When the C Run-Time (CRT) library and Microsoft Foundation Class (MFC) libraries are linked in the wrong

原创 HookLogger成功安裝步驟和注意事項

HookLogger作爲Symbian平臺上僅有的幾款內存泄漏檢查工具之一,具有使用簡單和功能強大的特點,可以滿足絕大多數應用程序開發的需要。然而這款工具的安裝卻非常不友好,默認裝完後無法使用。本文列出了需

原创 How to display "Writing language" menu automatically in edwin context menu on Symbian S60

In Symbian S60 system, the "Writing language" menu is a context sensitive menu item added automatically

原创 Symbian S60 PKG中Platform UID的使用

 Symbian S60的安裝包文件PKG中要求必須指定Platform UID,其格式如下:[<UID of compatible platform>], 0, 0, 0, {"S60ProductID

原创 使 MSN Messenger 7.5 支持 Windows 2000 的方法

首先用 WinRAR 等軟件解壓縮  Install_MSN_Messenger.EXE, 然後用 UltraEdit 或其他的十六進制編輯器打開 MsnMsgs.msi, 替換所有的 VersionNT >= 501 爲 Versio

原创 How to detect if a thread owns a message queue in Windows

To  detect if a thread owns a message queue in Windows, use PostThreadMessage. If the function call fai

原创 Difference between RVCT and GCCE

RVCT (ARM Real View Compilation Tools) is the compiler tools provided by ARM corporation. It can genera

原创 如何檢測線程的panic值

在某些Symbian平臺的手機上爲提高用戶界面友好性,往往會將panic對話框隱藏。這對於程序員進行調試時簡直是一種受罪。還好Symbian給人留了條活路,通過使用RUndertaker類可以在線程退出時得

原创 How to debug Control Panel applet (cpl) in VS .NET 2005

The following steps can help developer to debug cpl program in VS .NET 2005: 1. Set debug command to C:/Winnt/system32/