设计开发

RGA app in symbian tasks list

As far as I checked RGA example applications don’t appear in Symbian tasks list.
Am I missing something or it’s not supported?
Does anyone know how to fix it?

Well, N-Gage applications don’t show in the task list. Generally I think only S60 GUI applications show up there.

To hide an app:
CApaWindowGroupName has a SetHidden() method which you call with ETrue.

To make one visible you could try SetHidden(EFalse)…

I am wondering if the system considers an RGA application as a non-gui app, or whether they’re just deliberately hidden for N-Gage.

Sorcery

windows shell extension的注册表问题

CodeProject上有个非常好的讲shell扩展的系列文章:The Complete Idiot’s Guide to Writing Shell Extensions,作者在文章中提到了一下关于如何处理注册表的问题,主要是在哪添加context menu handler的问题。
以下是原话:
We can’t reliably use an RGS script since “txtfile” may not be the correct key name.
Some other text editor may be installed that associates itself with .TXT files. If it changes the default value of the HKEY_CLASSES_ROOT\.txt key, all existing shell extensions will stop working.
实际应用时我发现,如果ext针对的是一些比较常用的格式,如PNG,那么出现上述作者预料到的问题的可能性极高,原始情况下的PNG是这样:.png->pngfile,安装PhotoShop或ACDSee等软件并关联png后,就会改变.png想对应的名字项.png->ACDSee.png .png->PhotoShop.PNG.8,类似这样的东西,所以在实际应用中依赖.rgs注册表脚本文件是一种很不可取的方式,正确的做法应该是在dll注册服务器的时候,手动处理添加关联,当然,一些com的其它注册问题写在.rgs里还是没问题的,最后也别忘了在反注册的时候,手动删除自己添加的关联。(有ATL的话直接用CRegKey非常简单)

nS60_jme_sdk_3rd_e_FP1与EclipseME配合不能调试midlet的问题

运行时,提示类似这样的错误:Jar file could not be initialized
And, an exception: java.util.zip.ZipException: invalid entry compressed size (expected 552 but got 555 bytes)…

解决办法(来自forum nokia):

Go to the properties page of your project, “J2ME”, “Manage Devices”, edit all or your favourite “Emulator” entries and remove the ‘[%classpath%|-classpath “%classpath%”]’ entry from the Launch Command Table.

[ZT]DLL导出函数中有namespace时的用法

DLL中可以导出很多用户自定义的函数、类型、全局变量等。但是,我们有必要注意到这样的一种情形:我们写的DLL中有一些函数,能满足我们的需要,同时,我们也需要用到其他人写的DLL,但是不幸的是,这两个DLL中有同名的函数。尽管你可能还没碰到这样的情形,但是你可能要开始留意这个问题了,那么有什么好的办法来避免吗?

Continue reading…

证书系统破解成功.

基本上是按照http://www.dospy.com/bbs/thread-1463143-4-1.html的教程顺序一步一步下来的,开始卡在了sending message number 00…的地方,参考了一下其他论坛上的信息,好像是因为pc suite或software update manager的版本过高导致,因为刚升级完系统到国行的最新版本,所以2个软件的版本的确都是最高的,最后折腾了半天,该卸的卸该重装的重装,成功的状态是:没装software update manager,pc suite版本是6.83的样子。后面的步骤都比较顺利,替换根证书什么的,最后a4终于在最高权限下运行了,记事本什么的都可以用了,目前没发现任何不良反应,继续实验中……

S60 3rd的签名证书系统被破解了!

昨天打算试验一下5月份的a4输入法时,发现自己在symbiansigned上的developer licenese的key找不到了,网站上只能取到颁发后的cer文件,记得以前是可以取到key文件的,而且现在的symbiansigned不对没有publisher id的用户提供证书申请服务了,比较恶心。如果想用最高权限的a4的话就得有相应的证书文件来签名,查看别人讨论时发现60 3版的证书系统被破解了,方法也不是很复杂,好像是用了nokia给开发人员提供的trk真机调试程序改变了系统的某些东西,这样就可以让普通签名的sis包得到最高的执行权限,回来有空试下,希望不要变砖~_~

vcl线程内Synchronize更新主线程ui的问题

问题是这样的:我的Form会触发一个相当耗时的work,而同时我又不希望这个Form在做这个work的时候UI停止响应,所以,我把这个work放到了线程里执行(起了个继承自TThread的TWorker类),现在的问题时我想让这个工作的当前完成度在Form上以进度条的形式反馈给用户,也就是在线程中更新vcl组件的问题,

Continue reading…

[ExpressBars]How to Force a Main Menu to Always Be on Top of a Form

This can be accomplished if the main menu is placed onto a dock control, whose AllowDocking is set to False. Here are the step-by-step instructions of how to implement this feature in your application:
1. Drop the TdxBarDockControl component onto a form. The dock control is aligned to the top by default. Set the BarManager property to the BarManager of the form;
2. Dock the main menu to the dock control;
3. Set the AllowDocking to False of the dock control;
4. Set the NotDocking property of the main menu to [dsNone, dsLeft, dsTop, dsRight, dsBottom] (i.e. activate all options of the NotDocking).
The attached samples demonstrate the results of these steps.