自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (1)
  • 收藏
  • 关注

转载 文本文件编码方式的简单识别

 在实际编程中经常会碰到需要读取一个文本文件的内容并将其显示到程序中的情况。如果文件中所有的内容都以ASCII方式编码固然简单(通常包含英文字母和数字的文件,比如readme之类),但遇到包含其他语言字符,如中文和日文之类就必须在显示之前知道其编码方式。这是因为很多程序在显示文本内容时只接受UNICODE,故我们必须对非UNICODE的编码方式进行转换。由于谈到UNICODE时通常讨论的都是UCS

2008-08-20 10:50:00 5364 1

转载 经典的位运算实例

1) int型变量循环左移k次,即a=a >16-k  (设sizeof(int)=16) (2) int型变量a循环右移k次,即a=a>>k |a (3)整数的平均值 对于两个整数x,y,如果用 (x+y)/2 求平均值,会产生溢出,因为 x+y 可能会大于INT_MAX,但是我们知道它们的平均值是肯定不会溢出的,我们用如下算法: int average(int x, int y)  //返回X

2008-08-20 10:16:00 579

翻译 Symbian S60 PKG中Platform UID的使用

 Symbian S60的安装包文件PKG中要求必须指定Platform UID,其格式如下:[], 0, 0, 0, {"S60ProductID"}其中UID针对不同平台有不同的取值,具体如下:S60第三版MR:0x101F7961S60第二版FP3:0x102032BFS60第二版FP2:0x10200BABS60第二版FP1:0x101F9115 S60第二版:0x101F796其中S

2008-08-18 22:56:00 432

原创 Symbian SDK多次安装路径后缀名去除的方法

当Symbian SDK反复安装后,每次系统会自动在安装的路径后面加上计数值。例如第二次安装Nokia S60 MR SDK时,系统默认会安装到C:/Symbian/9.1/S60_3rd_MR_1下,而且结尾的_1无法去除。这对于许多IDE或是工具都是非常不方便的,其实去除末尾数字的方法非常简单,只需删除注册表项HKEY_LOCAL_MACHINE/SOFTWARE/Nokia/com.noki

2008-08-18 22:10:00 514

翻译 HookLogger成功安装步骤和注意事项

HookLogger作为Symbian平台上仅有的几款内存泄漏检查工具之一,具有使用简单和功能强大的特点,可以满足绝大多数应用程序开发的需要。然而这款工具的安装却非常不友好,默认装完后无法使用。本文列出了需要注意的几点:EPOCROOT必须被设置,HookLogger的Perl脚本中会用到HookLogger的安装路径中不能包含有空格。例如默认的安装路径C:/Program Files/Commo

2008-08-07 16:58:00 437

原创 Symbian中TRAP问题

在Symbian中,如果在TRAP宏中放入的不是一个函数,而是一段代码,并且这段代码中有返回语句,那么很可能产生E32User-CBase 63的panic。分析TRAP宏的定义就可以知道原因,下面是TRAP的原型:#define TRAP(_r, _s)                                        /    {                          

2008-02-04 16:31:00 596

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

首先用 WinRAR 等软件解压缩  Install_MSN_Messenger.EXE,然后用 UltraEdit 或其他的十六进制编辑器打开 MsnMsgs.msi,替换所有的 VersionNT >= 501 为 VersionNT >= 101 

2008-01-14 22:49:00 418

原创 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 by UI framework when edwin control is on focus.But sometimes the menu item will not appear. What

2007-10-10 22:46:00 443

原创 如何检测线程的panic值

在某些Symbian平台的手机上为提高用户界面友好性,往往会将panic对话框隐藏。这对于程序员进行调试时简直是一种受罪。还好Symbian给人留了条活路,通过使用RUndertaker类可以在线程退出时得到通知,并通过调用RThread的ExitReason和ExitCategory方法可以取得其panic的code。具体实现细节可以参考以下链接http://discussion.forum.n

2007-09-21 14:30:00 488

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

SYMPTOMSloadTOCNode(1, symptoms);When the C Run-Time (CRT) library and Microsoft Foundation Class (MFC) libraries are linked in the wrong order, you may receive one of the following LNK2

2007-08-18 13:56:00 521

原创 Symbian programming tips

2007-06-20 10:05:00 707

原创 How to activate snap group account on Symbian 9.x upwards platform

SNAP accounts use multiple access points which make it easy to start an internet connection and are a new feature found in UIQ 3 devices. With the UIQ 2 platform, users would have to manually make the

2007-06-18 15:53:00 736

原创 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 fails, use GetLastError() to retrieve the error reason. It can be one of the following:1. the thread

2007-06-06 11:37:00 471

原创 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/rundll32.exe or C:/Windows/rundll32.exe2. Set debug arguments to shell32.dll, Co

2007-06-05 13:52:00 461

原创 Difference between RVCT and GCCE

RVCT (ARM Real View Compilation Tools) is the compiler tools provided by ARM corporation. It can generate ABI (Application Binary Interface) V1 and V2 target versions. GCCE (GNU C Compiler Embedded) i

2007-06-05 13:13:00 417

What is HTML5

该书概要的介绍了HTML5的一些关键技术

2011-11-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除