12 月 2007

[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,这样就不会出现破碎感了,但不知道会不会导致效率的下降。