[ZT]All PSP Error Codes

First 4 digits indicate the functional area that reported an error : 8002 is the kernel, 8001 is the standard libc (and the error numbers correspond to the POSIX errno.h constants). Others are less well known, but you can see the wifi range from your list, for instance.

Continue reading…

[ZT]PSP program formats

The PSP uses ELF (Executable and Linking Format) as the executable format. These are packaged into a EBOOT.PBP along with other files for easy distribution and loading. When loaded, the MIPS cpu can run the code in kernel or user mode. Most of the XMB and drivers for the hardware boot in kernel mode. Most of the kernel code and device drivers for the PSP are coded in a relocateable executable format with the extension .prx. This format is a proprietary format made by Sony. Note that .prx format code need not run in kernel mode, but a vast majority of them are because Sony provided them to control the PSP hardware.

Continue reading…

如何使MFC的MDI默认不创建空child窗口

[color=#008000]// Parse command line for standard shell commands, DDE, file open[/color]
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
[color=#008000]// 防止开启后自动创建child[/color]
[color=#0000D0]if[/color] (cmdInfo.m_nShellCommand==CCommandLineInfo::FileNew)
{
[color=#0000D0]if[/color] (cmdInfo.m_strFileName==[color=#808080]””[/color])
{
cmdInfo.m_nShellCommand=CCommandLineInfo::FileNothing;
}
}
[color=#008000]// Dispatch commands specified on the command line[/color]
[color=#0000D0]if[/color] (!ProcessShellCommand(cmdInfo))
[color=#0000D0]return[/color] [color=#0000D0]FALSE[/color];
本代码由xTiNt自动着色 http://kbadboy.yeah.net

关于TScrollBox滚动后的内部控件重绘问题

当我在scrollbox内放个paintbox的时候,发现当滚动重绘的时候的行为好像是只更新并添加需要的部分,即滚动出来的新的部分,但这样会导致在滚动刷新的时候出现图像破碎的感觉,为了解决这个问题,我子类化了scrollbox,截获其WM_VSCROLL和WM_HSCROLL,然后invalidate对应的scrollbox,这样就不会出现破碎感了,但不知道会不会导致效率的下降。

[ZT]BCB6中的#Pragma说明

1.#pragma alignment
alignment pragma用于显示一条当前内存对齐(alignment)和枚举(enum)字节大小的消息。例如:
W8035: The alignment is 8 bytes, the enum size is 4 bytes
该消息必须在打开编译器选项”show general messages”或编译器开关”-wmsg”后才能显示。

Continue reading…

[ZT]里屋专用PSP知识普及贴0.40

买PSP已经快1年了,因为我平时就比较无聊 所以总是能抽出比较多的时间来研究
我会以尽量直白简单的话来写这篇帖子,不过因为个人习惯,所以打算多少讲解一些原理
如果明白原理的话以后出一些简单的问题大家就不会只是循规蹈矩了
你如果觉得明白原理没用或者你本来就明白甚至不想明白,那么各大PSP网站上有简单的流程攻略……最下面我会

Continue reading…

TdxBarSpinEdit 不能更新当前数字的问题

今天用的时候才发现不像普通的spinedit,不管是自己输入或是通过旁边的按钮都不能更新数字。
You should set the BarManager’s AlwaysSaveText property to TRUE.
Bastian Bauwens
DX-Squad
而如果是MDI子窗体的bar同时有合并操作的话则要同样设置主窗体的bar manager的此属性才可以。

OD2.0终于放出测试了,虽然是pre-alpha…

October 11, 2007 – First bug reports
Shame on me! In only one day, I have received 15 bug reports related to the v2.0 pre-alpha code! Most of them concentrate around the protection violation at address 477AC3 (a more or less obvious bug), but there are also other crashes reported. What should I say? Thank you! Without your steady help, OllyDbg 1.10 would never reach its actual quality. Hopefully, in some time second version will reach at least the same standards… Anyway, in the couple of weeks there will be update here. And – thank you again! Please keep it this way!

Continue reading…