一篇Mac OS下的GL中glFlush和glFinish的区别解释

Q: What’s the difference between glFlush() and glFinish()?
A: OpenGL commands are not executed immediately. Instead, they are submitted to a command buffer that is then fed into to the hardware. The glFlush() and glFinish() commands are both used to force submission of the command buffer to the hardware for execution. glFlush() causes all OpenGL commands currently queued to be submitted to the hardware for execution. This function returns immediately after having transferred the pending OpenGL command queue to the hardware (or software) renderer. These commands are queued for execution in some finite amount of time, but glFlush() does not block waiting for command completion.

Continue reading…

[ZT]CMWAP 和CMNET 的主要区别与适用范围

  如果你是一个菜鸟或者初学者,不妨直接跳到第(4)节,看看我提供的”应用程序能否工作于CMWAP的辨别方法”;如果你希望对CMWAP和CMNET有一个详细的了解,那么就读完全篇吧;如果你对这个问题有所研究的话,还请不吝赐教,解开仍旧困惑我的几个疑问。

Continue reading…

强制内嵌SIS文件的版本检查

TSS001331
开发伙伴平台:
S60 3rd Edition FP1, S60 3rd Edition FP2
详细描述
当安装程序检查到手机已经装有该SIS文件的相应版本时,会弹出提示警告窗口。但是安装程序并不会检查内嵌SIS文件版本,即时手机上已经装有该应用程序。
在PKG文件中我们可以确保安装程序只在已安装的内嵌SIS文件版本低于当前版本或之前根本没有安装时覆盖内嵌SIS文件。
解决方案
在PKG文件中需要进行相关设置。可以通过AppProp()函数测试PKG的属性。获得内嵌SIS的主副版本号和编译号。

Continue reading…

主题模板还是有点问题

不知道是不是由于这套主题对中文的支持不太好,有些小地方的按钮有边角问题,还有些链接排版错乱,看来还是得花些时间整理修改。想起以前上学时半夜改mt模板的时候了,可是现在很久没碰html了,好多tag都忘的差不多了…

[ZT]Symbian OS s60 3rd编程中实现IMSI、IMEI查询

#ifndef MYTELEPHONY_H
#define MYTELEPHONY_H

#include 
#include 

class CMyTelephony : public CActive
{
public:
static void GetIMSIL(TDes& aIMSI);
static void GetIMEIL(TDes& aIMEI);
static void GetPhoneType(TDes& aPhoneType);
static void DialPhone(const TDesC& aPhoneId);
static CMyTelephony* NewL();
protected:
void DoCancel();
void RunL();

private:
static CMyTelephony* NewLC();

~CMyTelephony();
CMyTelephony();
void ConstructL();

void GetSubscriberId();
void GetPhoneId();

private:
CTelephony* iTelephony;
CTelephony::TCancellationRequest iRequest;
CTelephony::TSubscriberIdV1 iSubscriberId;
CTelephony::TSubscriberIdV1Pckg iSubscriberIdPckg;
CTelephony::TPhoneIdV1 iPhoneId;
CTelephony::TPhoneIdV1Pckg iPhoneIdPckg;
CTelephony::TCallId iCallId;
TBuf<32> iPhoneType;
public :
void DialNewCall(const TDesC& aTelNumber);
};

#endif // MYTELEPHONY_H

Continue reading…

WordPress不愧是国内使用最多的php blog

中文主题模板论坛资料一大堆。很快就找到了看着还不错的主题,在mt上尝试很久的wap访问也通过WP-T-WAP插件搞定了。(PS:通过xml-rpc方式的发布管理工具的mobile应用程序也很多,只是写的话用起来也不错)