View Full Version : VGA Files - How to edit?
pug
15th October 2006, 11:58 AM
Does any one out there know how to edit the .exe files so that I can turn them into VGA (96dpi) for the Uni?
I have tried with the Camera and WLanMgr modules and neither of them seem to work so I don't know what I am doing wrong.
I have tried PE Explorer, XN Resource Editor and Resource Hacker but none of them seem to work. Is there any sort of builtin checksum or protection.
Thanks in advance,
Pug
vijay555
15th October 2006, 11:28 PM
I think Visual Studio is the best resource editor for this job.
However, examine Azhad's work on fixed VGA apps, he did great work.
From memory, you have to create a new resource dll and sign it. But I'm not sure, I got for less direct routes personally.
V
jarbi
16th October 2006, 12:17 PM
Does any one out there know how to edit the .exe files so that I can turn them into VGA (96dpi) for the Uni?
I have tried with the Camera and WLanMgr modules and neither of them seem to work so I don't know what I am doing wrong.
I have tried PE Explorer, XN Resource Editor and Resource Hacker but none of them seem to work. Is there any sort of builtin checksum or protection.
Thanks in advance,
Pug
I am using Tweaks2k2 always, the VGA hack is built in there. You just have to browse for the .exe file and click a button to apply "VGA brute force".
dotfred
16th October 2006, 01:02 PM
Does any one out there know how to edit the .exe files so that I can turn them into VGA (96dpi) for the Uni?
I have tried with the Camera and WLanMgr modules and neither of them seem to work so I don't know what I am doing wrong.
I have tried PE Explorer, XN Resource Editor and Resource Hacker but none of them seem to work. Is there any sort of builtin checksum or protection.
Thanks in advance,
Pug
DPI aware applications just check in the registry which DPI is used.
QVGA Pocket Pc, 176 x 220 Smartphone & 240x240 Pocket PC have a resolution of 96 dpi.
VGA Pocket Pc & 480x480 Pocket Pc have a resolution of 192 dpi.
QVGA Smartphone has a resolution of 131 dpi.
This info can be found in MSDN (Windows Mobile Version 5.0 SDK, High DPI Display)
Windows Mobile Version 5.0 SDK, User Interface layout:
UI elements whose positions and sizes are specified in pixel coordinates that assume 96-DPI will be incorrect in high DPI. In general, all UI elements should be laid out using scaled positions and sizes, or relative to controls, fonts, or system metrics.
The GetDeviceCaps Windows CE-based function can be used to obtain a display's DPI by passing in either LOGPIXELSX or LOGPIXELSY as the second parameter. The CrosswordSample demonstrates how you can define SCALEX and SCALEY macros to apply a scaling factor based on information from GetDeviceCaps.
You can continue to work in pixels but remove assumptions about the DPI by:
Using the SCALEX and SCALEY macros to scale 96-DPI pixel coordinates, or using the metrics returned by GetSystemMetrics.
Expressing sizes or positions relative to other controls.
Expressing sizes or positions relative to a font.
Dialog boxes already use font sizes to determine their layout, so typically they need no special modification to work on high-DPI devices.
Here is an example of positioning a window with DPI awareness, where x, y, dx, and dy are pixel coordinates in 96-DPI:
SetWindowPos(hwnd, NULL, SCALEX(x), SCALEY(y), SCALEX(dx), SCALEY(dy), SWP_NOZORDER);
If you choose to scale 96-DPI pixel metrics, be aware of rounding problems when using integers. For example, SCALEX(a + b) may not equal (SCALEX(a) + SCALEX(b)) because of rounding issues.
For drawing lines or images and icons, the same should be applied.
So even if you change the size of the resources, the application will try to find and scale the image with the dpi found in the registry.
The dpi values are stored under:
HKLM/System/GWE/Display
Cheers,
.Fred
pug
19th October 2006, 12:05 PM
Thanks for the info guys,
Just read it so will shoot off and have a look at all the info and see which works best for me.
Once again, thanks.
Pug
starche_old
19th October 2006, 05:36 PM
I'm 200% sure the battery is gone, b'coz i faced the same problem with my Dopod 900. Strange, it was just 4 months old and the battery just gone.
I replaced it by warranty, but I was privately told there was a problem in some deliveris with battery
vBulletin® v3.8.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.