I installed version 0.1.4 on my ipaq 2210 and when I start the application I get an error "Can't find Entry Point SHGetUIMetrics in a PInvoke-DLL aygshell.dll". I have PPC2003 (4.20) with the .NET Framework installed.
Can't someony help me with this?
From the Visual Studio Help page:
The SHGetUIMetrics function retrieves the system font size.
Pocket PC: Windows Mobile 2003 Second Edition and later.
Smartphone: Windows Mobile 2003 Second Edition and later.
OS Versions: Windows CE .NET 4.2 and later.
So does your PDA have PPC2003 Second Edition or not?
Maybe i accidentely used a function which is not available on PPC2003. However due to PPC2003 generally not supporting 1bit Transparency with the .Net Compact Framework you wouldn't like the look of the program anyhow. Unless you love pink :-)))
My PDA doesn't have PPC2003 SE, but just PPC2003.
And I love pink when I have to :-).
Thnx for your reply!
just a me too, i have a iPAQ H5450, giving the same message and it would not bother me if the GUI comes in pink ;-).
The Settings->About->Version says its Version 4.2.1081 ( Build 13100 ) … no clue if that is "Second Edition" or not.
Can somebody check if the file "aygshell.dll" exists at all on a PPC 2003 device? If it doesn't i might have a simple workaround. The DLL might be in the "windows" folder and is part of the ROM usually. Please check using for example "Total Commander CE" and untick "Hide files in ROM".
on my device, there's a Windows\aygshell.dll size 128k, date 03.05.03 20:41, i guess that is a new function/symbol introduced in the 2003 SecondEdtion.
Hm great, it's never easy with Microsoft :-)
I just found a nice article about a bug in windows mobile 2003, that GetProcAddress returns the base adress of the DLL instead null, so actively looking for the "non-existing" function doesn't work either.
Guess i have to go with "GetVersionEx" and look for V4.20… Just have to find the right PINVOKE/Marshalling magic to get the information into C#.
Thanks for checking Klaus.
Ok found it…
Though shall use:
if ((4 == Environment.OSVersion.Version.Major) && (20 == Environment.OSVersion.Version.Minor))
Can you send me an e-mail so that i can get a testbinary to you Klaus?
FYI: E-Mail for testing PPC 2003 workaround sent to Klaus.
It's also on my ipaq 2210, only with a different date: 23-02-04 08:49.
If I also could get the testbinary, I would be very happy!
Sorry my employer sent me on a business trip for a few days and i just came back.
The feedback i got from Klaus was: The application does not throw an exception anymore, however it also does not show any dialogs at all, just an icon in the task manager equivalent. So there must be more undocumented differences beween PPC2003 and the other OS versions. Does not look very promising to get it running at all yet.
Ah, too bad :(.
Log in to post a comment.