Visual Studio 2008 + Windows Mobile 6 + POWERVR SDK OpenGL ES 1.1 - Windows Mobile Development and Hacking General

Hello,
I want to develop applications based on OpenGL ES. i´m testing with htc diamond device.
My development environment:
Visual Studio 2008 + Windows Mobile 6 SDK + POWERVR SDK OpenGL ES 1.1
Powervr sdk examples gime me the following error on device:
iglInitialize() faled.
Code:
/*
Step 1 - Get the default display.
EGL uses the concept of a "display" which in most environments
corresponds to a single physical screen. Since we usually want
to draw to the main screen or only have a single screen to begin
with, we let EGL pick the default display.
Querying other displays is platform specific.
*/
eglDisplay = eglGetDisplay((NativeDisplayType) hDC);
if(eglDisplay == EGL_NO_DISPLAY)
eglDisplay = eglGetDisplay((EGLNativeDisplayType) EGL_DEFAULT_DISPLAY);
/*
Step 2 - Initialize EGL.
EGL has to be initialized with the display obtained in the
previous step. We cannot use other EGL functions except
eglGetDisplay and eglGetError before eglInitialize has been
called.
If we're not interested in the EGL version number we can just
pass NULL for the second and third parameters.
*/
EGLint iMajorVersion, iMinorVersion;
if (!eglInitialize(eglDisplay, &iMajorVersion, &iMinorVersion))
{
#ifndef NO_GDI
MessageBox(0, _T("eglInitialize() failed."), _T("Error"), MB_OK|MB_ICONEXCLAMATION);
#endif
goto cleanup;
}
Any help!
thanks you

Any other ideas for programming in c++ and opengl for windows mobiles?

Dude you need to install new graphics driver for the HTC Diamond.
http://forum.xda-developers.com/showthread.php?t=496528
download "NeoS2007_Driverpack_3.cab" and restart your phone.

I installed the package, but I get the same problem ...

Yes because HTC Diamond not support OpenGL es 1.1, only 1.0 !!!

ok, I didn´t know ... I found a solution to 1.0 in this blog:
greengalaxy.wordpress
following these steps I run my compiled applications smoothly.
Thanks all!

Related

Update of JVM on Qtek S200

I have a Qtek S200 with:
Microsoft Windows Mobile 5.0 OS 5.1.195 (Build 14928.2.2.0).
and
intent Java MIDlet Manager Runtime MIDP 2.0: v10.1.7.545 (Build 20051117)
I want to develop a MIDlet which needs file access and/or camera access. I know that device needs the optional packages (JSR-75 PDA-API and JSR-135 Mobile Media API) to accomplish that. And it seems that these optional packages are not supported by the MIDlet Manager.
I have tested this MIDlet already on a smartphone (Nokia N73). The Java Micro Edition of this Phone supports several Optional Packages. It can not be possible that a PDA provides less functionalities than a Smartphone.
1. Is it possible to upgrate the JVM (MIDlet Manager) on the device? So that I can use these optional packages.
2. Does anybody know which MIDlet Manager supports these functionalities?
I have found a newer version of the intent Java MIDlet Manager
Runtime JTWI 1.0: v11.1.7.1023 (Build 20060907)
This version provides the optional package JSR-75 which is needed for file access.
I found a download here: http://wronek.wikidot.com/java-wm
But this version does not provide the Multi Media API JSR-135 which is needed to use the devices build in camera.
So if anyone knows an other MIDlet Manager please reply.
I've found an other MIDlet Environment which supports file access (JSR-75).
It is the IBM J9. The installation of this Environment is a bit tricky but the GUI of this MIDlet Environment is more beautiful than that of the intent Java midlet manager.
Here you can find a good installation discription:
http://www.markus.brosch.net/?p=111

HELP!! Win CE 4.2 #define values needed.

I don't have access to the shared source for Win CE 4.2 and I need a few #define values from the kernel header files. I am looking for the MID_GetMessageW, MID_PostMessageW, MID_SendMessageW and CreateWindowExW values. These are the indexes of the methods in the APISet function array kernel structures and they have changed implementation between 4.2 and 5.0. I can't seem to find an eval copy of the WinCE platform builder for 4.2 all that's out there is 5.0 and newer. Any help with the MID defines found in the Core OS header files would be much appreciated. It would be even better if someone could post all of the MID defines just in case I need to find another function.
In case your wondering why I need these defines, I'm trying to hook into the GWE message passing API for all processes so that I can intercept window messages and possibly inject my own.
Thanks in advance.
RG

Deep IAT Hooking

Hi,
I've been porting a large number of linux based programs to the Gizmondo (CE 4.2 device).
One of the main issues is the broken c-runtime of CE, specifically the lack of current dir support (not to mention no posix layer ). At any rate I wanted to be able to hook fopen etc. to call my own functions which would handle current dir.
To do this I thought I'd make some nice and easy IAT hooking code, that was until I discovered how complex this was on CE (relative to Win32 that is).
After much head scratching and looking at the stellar work of those such as mamaich, itsme etc. I finally managed to get it right.
I hope this is useful to someone (I searched this board, but couldn't find any code, though I do remember someone asking how to do it) and have attached a zip file with the hooking code. In order to use this you will need to provide your own undoc.h with the relevant kernel struct and function definitions for your wince flavour.
Once again, I stand on the shoulders of giants, without whom this would not have been possible
Enjoy
-(e)
Beatiful~
You are genius~
Thank you.
Wow~
You are so beautiful~ ^_____^
Thank you.
I just wanted to start asking questions here... sweetlilmre, THANK YOU VERY MUCH!!!
excellent job~
thank you
Does anybody have undoc.h created for windows mobile 6 (wince 5.x)? If not, where should I look for the undocumented type info?
Hi~ JKingDev
I have ever created undoc.h with referencing "private" directroty.
"private" directory is installed with Platform builder. ( I used Platform Builder 5.0 )
If PB is installed, then C:\WINCE500\PUBLIC and C:\WINCE500\PRIVATE is created.
( I don't know Window Mobile 6.0 environment. )
p.s :
If you can translate KOREAN, then visit http://www.digipine.com/programming/1310.
This site has attached file "WinCE_ARM_Hook.zip". ( bottom side )
It is not my post, maybe it is posted by "jung cheulwon".
Hi all,
first of all, thank you sweetlilmre for posting this.
Your solution works perfectly fine for platforms based on Win CE 5, e.g. Win Mobile 6.1 and Win Mobile 6.5.3.
However it does unfortunately not work on Win CE 6 and Win CE 7.
I assume that this is due to changes in the memory architecture of Win CE 6 and higher.
Does anyone have a clue on how to port the "Deep IAT Hooking" solution on Win CE 6 and Win CE 7?
Some techical details on what i have tried so far...
Code:
[INDENT]
PROC WINAPI DeepHookImportedFunction(
LPCWSTR pwszModuleToHook, // Module to intercept calls to
LPCWSTR pwszFunctionToHook, // Function to intercept calls to
PROC pfnNewProc, // New function (replaces old function)
LPWSTR* ppwszExcludeList // List of module names to exclude from the hook
) {
PROC pfnOriginalProc;
PIMAGE_IMPORT_DESCRIPTOR pImportDesc;
PIMAGE_THUNK_DATA pThunk;
PPROCESS pProcess;
struct info inf;
PMODULE pmods;
LPVOID baseptr;
BOOL bHooked = FALSE;
SetKMode(TRUE);
// Get current process struct from KData
pProcess = KData.pCurPrc;
// Get process import descriptor
[B][COLOR="Red"]inf = pProcess->e32.e32_unit[IMP];[/COLOR][/B]
[/INDENT]
The program crashes (at the red marked spot) when i try to access the member
Code:
pProcess->e32
.
This is because the structure
Code:
pProcess
is filled up by the value zero only.
This happens quite early in the implementation, therefore i didn't proceed very far. I still hope that somebody can help me out with this case.
Kind regards

Running .NET Compact Framework Application on WinXP

Some time ago i found out when you resolve the working dir with
Code:
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)
and you run your program on a XP computer it crashes if you try to access a file with you AppPath String
this problem comes from that this code gives you the dir with a starting "file:\"
so just remove it and it is fine...
Here a VB.NET code for that
Code:
'Get the Startup Path
AppPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)
If AppPath.StartsWith("file:\") Then
AppPath = AppPath.Substring(6)
'MsgBox(AppPath)
End If
You ask for what that is good for?
You can test your apps without an emulator, test if it works on any resolution or play around with you tablet pc

List of overclock apps for Windows CE/Mobile

I receive as a gift a chinese 7" gps-tablet with Windows Embedded CE 6.0, and of course it's weak point is the processor, I cannot handle his native 800x480 resolution, so I search for any of the most commong apps for overclock this tablet and no luck, as far I tried:
- OCT 1.5 : Error at start
- MSM7KCPUSpeed: Error at start
- WiMoSpeed: Error at start
- XCPUScalar: Error at start
¿Any thoughts?, Please if any other app exist please post it here to try.
Thanks
It would help if you would post what the error messages are, as these apps may just need some extra DLL files to work, and the error messages might provide clues.
best one for regular xscale cpus: xguru. works from tray.
as interesting feature i may add NATIVE resolution changer for drivers that allow it(what i found VERY useful).
this feature may not work with your screen, since tool's using qvga/vga/realvga standards, but i wonder, if reverse-engineering or hexedit could make it work with 800x480..
it's weak point is the processor,
Click to expand...
Click to collapse
what processor it uses?
- OCT 1.5 : Error at start
- MSM7KCPUSpeed: Error at start
- WiMoSpeed: Error at start
- XCPUScalar: Error at start
Click to expand...
Click to collapse
go to navi forums to check, if there are dll packs that may help you. use some kind of tool to determine name of dlls that overclockers are using.
Hello,
I'm very interested too, so many weeks I spent to overclock my PNA without success...
It's a no name GPS unit with the following characteristics :
Microsoft Windows CE ver 6.00
Processor : ATMEL ARM926EJ (StrongArm)
Clock speed : 366 Mhz
Memory : 128 Mo RAM
Screen : 480x272 pixels, 65536 colors
This unit is already unlocked with many tools (files explorer, registry programs, process viewer, a lot of players/readers, etc...) so I can easily access files or registry if required.
I've added also a package with .DLL files common to this kind of GPS, and well installed Microsoft .NET CF 3.5.7283.0.
There's no overclocking software working for now, here's the status of my tests :
Speed.exe (Speed Version 1.10) : unable to select something in the main windows (and must kill the process to end application).
Turbo Tray.exe (with four different program versions : 333, 400, 472, 498 Mhz) : the application seems to work, the frequency control is correctly displayed in the taskbar, all the choices or changes made seem to be taken. But in fact the frequency of my CPU is never changed and still running at 366 Mhz.
Xclkcfg2.exe (version 1.01) : nothing happens, no error message at launch, but no process in memory either.
SpeedStepper.exe : same result (nothing happens, no error message at launch, but no process in memory either).
XCPUScalar.exe : run-time error, with the following dialog box : "Application Error - Application XCPUScalar.exe encountered a serious error and must shut down."
MSM7KCPUSpeed V1 : run-time error, with the following dialog box :
(in french)
Erreur
Code d'exception : 0xc00000005
Adresse d'exception : 0x409d11dc
Lecture : 0xb5400104
Module défaillant : msm7kclocklib.dll
Offset ; 0x000011dc
... / ...
Click to expand...
Click to collapse
MSM7KCPUSpeed V2 : same as V1.
WiMoSpeed (version 1.09) : run-time error, with the following dialog box :
(in french)
Erreur
Code d'exception : 0xc00000005
Adresse d'exception : 0x409d2838
Ecriture : 0x00000000
Module défaillant : wimospeed.dll
Offset ; 0x00002838
... / ...
Click to expand...
Click to collapse
OCT 1.5 : unable to install... Seems the .CAB file isn't compatible.
And XGuru.exe does not work (no error message at launch, but no process in memory either).
Could you help me find it does not work, or another suggestion for overclocking software ?
Regards,
ps: sorry for my english I'm french
There is no generic overclock utility for Windows Mobile or WinCE. Overclock utility deals with the PLL clock generator within the SoC, so they are specifically targeted for the HW they are meant to be used with. So far, there are only overclock utility for Intel XScale, TI OMAP850, Samsung S3C and Qualcomm MSM7-series. If your HW does not have some of the popolar SoC for Windows Mobile during its time, it is not possible to make use any overclock utilities.

Categories

Resources