Problem on starting my first prog on my XDA - Windows Mobile Development and Hacking General

Hi,
i have written a very simple hello world program and transfered it on my xda. But when i want to start the prog this message apears "hello world or one of its components are missing" ( in german Hello World ( oder eine der komponenten) konnte nicht gefunden werden. )
i use emc 4.0, is it necessary to install some kind of runtime dll or so. here my inf file for building a cab
[Version]
Signature="$Windows NT$"
Provider="frost"
CESignature="$Windows CE$"
[CEStrings]
AppName="helloworld"
InstallDir=%CE2%
[CEDevice]
ProcessorType = 2577 ; StrongARM
UnsupportedPlatforms = "HPC","Jupiter"
VersionMin=3.00
VersionMax=32767.0
BuildMax=0xE0000000
[DefaultInstall]
CopyFiles = Files
[SourceDisksNames]
1=, "SourceDisk01",,C:\Projekte\Development\xda\hello world\ARMV4Rel
[SourceDisksFiles]
"hello world.exe" = 1
[DestinationDirs]
Files = 0, %InstallDir%
[Files]
"hello world.exe",,,0x40000003
ok thanks a lot

what happens if you just try to run the exe file without using the cab to install?

the same message, is it possible that the os of my xda is too old or is an additional dll needed?

does it also happen when you debug the program using the simulator and your xda as platform ?

when i use the emulation on evc 4 it works, but how can i configure the emulator as xda platform?

somewhere in the embedded visual c++ 4 settings you should be able to pick the pda as debugging platform

hi,
now i figured out why it doesn´t work the solultion for this problem can be found here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/evc4migration.asp
for people with the same problem ....
the reason:
the os is too old for evc 4

well you can upgrade it to 2003SE then

Related

Sticky French ROM.

I’m stuck with a minor problem and have spent more than a week trying to fix it. :?
STORY
To replace an O2 3.20 Eng on PCC 2002, I have cooked a French Rom based on 3.16 Qteck and included the freeware I liked, one of them being a freeware named POI (Point Of Interest) to be used with Tom-Tom Navigator.
ORIGINE
My problem is that I think, installing POI on ROM, was a silly choice of me as I cannot save any modified settings of POI such as setting for Speed cameras. :evil:
PROBLEMS
Pb N° 1. : I cannot save my POI settings. I get no really error messages, but all is gone next time I open it. Does any one have a clue?
PB N°2: As I had no clue, I decided to cook a French ROM without POI in it. But I failed to reinstall the newly cooked ROM after downloading the EXE file and running it, my PC opened DOS windows with an error message saying ERROR UNSUPORTED LANGUAGE ‘FRA’ prior to opening the Program A window. Then Program A gives me an Error 007 No Rom Image File … Cannot find ROM image to upgrade you Pocket PC.
PB N° 3: I decided to build an English ROM on 3.20 UK. as it seemed that French language may be the source of PB N°2. But after downloading it and running the exe file on my PC , a DOS windows opens and close then nothing would happened.
PB N°4: I decided to use XDAtools to flash my original XDA ROM (saved in the first place on my PC) back to my XDA, but XDAtools refuses to write to my XDA memory through Program A saying error opening c:\...\English\ for writing Access refused. Error opening the target device. “
I have no idea what XDATools tried to open so I cannot either go that root neither.
I now quite perplex on how to solve question N°1, or at best getting BP N°2 to work.
Any hint :?:
kommst Du ins Recovery? Dann brauchst Du ja keine RUU sondern nimmst das was auf Deiner internen Speicher ist ( ROM ) und spielst es wieder ein oder gar die Backup. LG
Gesendet von meinem Transformer Prime TF201 mit Tapatalk 2

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

win7 PNRP error - cannot connect BT or USB

after I recovered my XDA and did a restore I cannot enter ACTIVESync anymore. Neither USB nor Bluetooth :-(
Windows-Systemprotocoll tells me that there is an error with the PNRP service.
on USB the following error occurs, its in german, but translated:
[Die Peer Name Resolution-Protokoll-Cloud wurde nicht gestartet. Fehler bei Standardidentität. Fehlercode: 0x80630801.]
"the PNRP cloud could not be started. Error in standard-identity. Errorcode 0x80630801"
--
the xda shows a errror window POCKET PC NETWORKING "cannot obtain a server-assigned IP address. Try again later or enter an IP address in Network settings"
--
Der Dienst "Peer Name Resolution-Protokoll" wurde mit folgendem Fehler beendet: %%-2140993535
"the service PNRP-Protokoll terminated due to following error %%-2140993535"
--
Der Dienst "Peernetzwerk-Gruppenzuordnung" ist vom Dienst "Peer Name Resolution-Protokoll" abhängig, der aufgrund folgenden Fehlers nicht gestartet wurde: %%-2140993535
says that service "group-assignment" is terminated due to dependecy to PNRP-Protokoll service which could not be started due to error %%-2140993535
update:
managed BT by deleting connection in ACTIVE-SYNC settings in XDA
and re-initiating connection.
So far so good
Flash Lite 3.0 application cab file cration using the visual studio2005
Hello friends,
i am flash developer i need to create the CAB file of Flashlite application.
I have created the flashlite 3.0 application.
i want to create the CAB file of this application for WM5.0.
its reallty helpful if anyone provides details how to create the flash lite application CAB file using .NET.
Thanks in advance
Looking for positive reply.
Flashlite CAB file cration uisng 2005 .NET
hi all,
Please let me know how to create the CAb of Flash lite application
uisng .NET(Visual studio 2005)

Visual Studio 2008 + Windows Mobile 6 + POWERVR SDK OpenGL ES 1.1

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!

Categories

Resources