Slide 2 Unlock on Mogul Help - Windows Mobile Development and Hacking General

when i run the program i am getting
App: SLIDE.EXE
File:SLIDE.EXE
Proc: WINMAIN
Opcode: LOADSPRITE
Char/Line/Offset: 0, 0,
0x005391e0
Error loading image
\Program
Files\Slide2Unlock\GFX\Res\Wallpaper.bmp
I Followed to Extension and the file is there and opens fine..any suggestions?

For some reason I am getting the same error in mine I have tried doing this like 4 times already. If some one knows what’s wrong please help.

mackthepattywack said:
when i run the program i am getting
App: SLIDE.EXE
File:SLIDE.EXE
Proc: WINMAIN
Opcode: LOADSPRITE
Char/Line/Offset: 0, 0,
0x005391e0
Error loading image
\Program
Files\Slide2Unlock\GFX\Res\Wallpaper.bmp
I Followed to Extension and the file is there and opens fine..any suggestions?
Click to expand...
Click to collapse
have you tried S2U2 rather than Slide to unlock

Is there a picture file at the end of that path?
"\Program Files\Slide2Unlock\GFX\Res\Wallpaper.bmp"

Related

Problem opening TrueFFS device...

Hello,
I am trying to write a utility that can manipulate TrueFFS file systems on my Cingular 8125. However, I dont seem to have the right device names when I try to open them. For example,
hDevice =
CreateFile(
TEXT("DSK1:"),
GENERIC_READ|GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
0,
NULL) ;
fails with error code 55, "The specified network resource or device is no longer available."
Can someone set me straight here? Or point me to some example code that works?
Thanks!

Win32 Mode Failure to set text in static control

I have a problem in setting controls in a Win32 application.
When I use SendMessage to set a text string in a static control I get error number 120 which translated means: "This function is only valid in Win32 mode."
Here's the background:
I'm using Visual Studio 2005, I've installed the Windows Mobile 5 SDK.
The project was created using the New Project Wizard, with the following settings:
Visual C++/Smart Device
Win32 Smart Device Project
Platform SDK is: Windows Mobile 5.0 Pocket PC SDK
Windows application
I've added a dialog template resource and can bring up a dialog based on that resource. It contains a static control that I can read the text from, but attempting to set the text gives me the above error.
The relevent code (within the WM_INITDIALOG message handler) is:
Code:
char buffer[100];
HWND hCtrl = ::GetDlgItem(hDlg, IDC_TITLE);
LRESULT result = ::SendMessage(hCtrl, WM_GETTEXT, (WPARAM)80, (LPARAM)buffer);
This works, I get the correct text (ie the text I have placed into the static control using the dialog template editor) copied into the buffer. What follows is:
Code:
buffer[0] = 'A'; // Just to set up a different string
result = ::SendMessage(hCtrl, WM_SETTEXT, (WPARAM)0, (LPARAM)buffer);
if (result == 0)
{
LPVOID lpMsgBuf;
DWORD error = ::GetLastError();
::FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, error, 0, (LPTSTR)&lpMsgBuf, 0, NULL);
::MessageBox(NULL, (LPCTSTR)lpMsgBuf, (LPCWSTR)"LError", MB_OK | MB_ICONINFORMATION);
::LocalFree(lpMsgBuf);
}
The attempt to set the changed text string fails (ie result == 0), and the last error is 120, which is translated to the error message above.
This works the same in both the Windows Mobile 5 emulator, and if I run it on my Atom.
What does this mean? How could it be anything other than Win32 mode?
Is there a function or something I have to call to put it into Win32 mode?
Or is it a project setting in VS2005 that I haven't been able to find?
I'd very much appreciate any help on this.
Peter
Your build target was a PPC 2003 variant for this project, correct? If so (and I'm assuming that it is so because you mention trying this on the PPC emulator), then you are most certainly not in Win32 mode, rather you are targeting WinCE. To target win32, you need to go into configuration manager and change your target at which point your program will no longer run on PPC.
More to your problem: I don't believe that you can dynamically change dialog static control properties through messaging on WinCE. I may be wrong on this here though too....

Windows media player skins

Hi guys been playing around with a few WMP skins. A number of tweaks to make them different from the boring plain Microsoft skin.
Copy cab to device - install to storage card to save space. In Media Player goto options\skins to select the one you want.
Dark wood skin is best used with the dark wood theme - enclosed
N.B. These are portrait only skins.
If anyone else has good WMP skins post them here.
EDIT I have added xcilion's great Vista Portable Edition WMP skin
You can make your own skins - edit a skn file it goes like this:
[Pocket WMP Skin File v10.2.0]
//////////////////////////////////////////////////////////////////////////////
[ Description ]
// <X,Y> <DPI>
// ------ -----
Dimensions 240, 320 96
// <Orientation>
// -------------
Orientation Portrait
//////////////////////////////////////////////////////////////////////////////
[ Branding ]
// <Name> <Location>
// ------ -------------
Background 0, 0, 239, 202
//////////////////////////////////////////////////////////////////////////////
[ Bitmaps ]
// <Name> <File name> <X,Y>
// ------ ----------- -----
Background portrait96.gif 0,0
Disabled disabledP96.gif 0,0
Pushed pushedP96.gif 0,0
//////////////////////////////////////////////////////////////////////////////
[ Video ]
// <Location>
// ----------
5,37,230,155
//////////////////////////////////////////////////////////////////////////////
[ AlbumArt ]
// <Location>
// ----------
5,37,230,155
//////////////////////////////////////////////////////////////////////////////
[ Buttons ]
// <Function> <Type> <Location> <Push Image Src> <Dis Image Src> <Hit R,G,B> <Norm 2 Image Src> <Push 2 Image Src>
// ---------- ------ ------------ ---------------- --------------- ----------- ------------------ ------------------
PlayPauseStop NA 101,220,38,43 Pushed @ 79,0 Disabled @ 79,0 0, 0, 0 Pushed @ 210,0 Pushed @ 248,0 Pushed @ 286,0 Pushed @ 324,0
Prev NA 68,225,29,33 Pushed @ 50,0 Disabled @ 50,0 0, 0, 0
Next NA 143,225,29,33 Pushed @ 117,0 Disabled @ 117,0 0, 0, 0
Mute NA 188,253,14,16 Pushed @ 196,0 Disabled @ 196,0 0, 0, 0
VolumeUp NA 212,220,25,29 Pushed @ 171,0 Disabled @ 171,0 0, 0, 0
VolumeDown NA 184,227,25,29 Pushed @ 146,0 Disabled @ 146,0 0, 0, 0
FullScreen NA 4,220,25,29 Pushed @ 0,0 Disabled @ 0,0 0, 0, 0
WindowsMedia NA 32,227,25,29 Pushed @ 25,0 Disabled @ 25,0 0, 0, 0
//////////////////////////////////////////////////////////////////////////////
[ Text ]
// <Item> <Location> <Align> <Font> <Color>
// ------ ---------- ------- ------ -------
VolPercent 205,204,32,115 Right Tahoma,8,B 0,0,0
Time 13,203,50,13 Left Tahoma,8,B 0,0,0
Status 6,20,230,16 Left Tahoma,8,B 255,255,255
//////////////////////////////////////////////////////////////////////////////
[ Marquee ]
// <Location> <Font> <Color> <Text item combinations>
// ---------- ------ ------- ------------------------
6,4,230,16 Tahoma,9,B 255,255,255 Title,Filename
//////////////////////////////////////////////////////////////////////////////
[ Trackbars ]
// <Function> <Location> <Dis Image Src> <Thumb Image Src> <Thumb Size>
// ---------- ---------- --------------- ----------------- ------------
Seek 61,204,172,10 Background @ 61,204 SeekThumb96S.gif 20,10
//////////////////////////////////////////////////////////////////////////////
You can move things around the screen by changing these numbers! I did it by trial and error - the first 2 numbers are x,y co-ordinates - x from the left border of the screen and y appears to be from the top of the screen.
Thanks!! They look GREAT!!
More WMP skins for my growing collection!!
you when i install the wmp skin and go into the ops/skins it dose't find any i done about 3 skins and it dose't find any of them?????????
You have to copy the skins folder into \Program Files\Windows Media Player for them to show up to choose from.
For those who want to do manual installation - zips attached
They work fine where ever i place them - main memory or storage card.
If you have trouble installing - normal installation directory = \appliction data\microsoft\media player
i sorted it now thats, i thinking of makeing a skin how do u make the installer the .cab file. as i tryed to edit a skin ive had before and zip it renamed it .cab but it did't work and i did edit the .skn file. any ideas
Wokerz said:
i sorted it now thats, i thinking of makeing a skin how do u make the installer the .cab file. as i tryed to edit a skin ive had before and zip it renamed it .cab but it did't work and i did edit the .skn file. any ideas
Click to expand...
Click to collapse
You need to make it with cabiwiz or an archiver by an inf file or xml file.
Most of the cab makers cost and are not cheap but are much easier than doing it manually as I do.
Wince cab manager
http://www.ocpsoftware.com/products.php?nm=cecabmgr
Cabomatic
http://www.phelios.net/cabomatic.html
I am a cheapscate! No honestly i like doing it manually because i can understand the process better.
Sorry no tutorials - i taught myself - unzip one of the cabs and there will be a xml file there. Look at that will give you an idea of what is involved.
Any how zip files will be fine for these skins.
thanxs bro
Here's a few that I have. Extract the zip files to "program files"/windows media player.
Thank you hotdog53 for these theme my favorite is legalpad
heres my darkling skin i made ages ago for my vga hp 5550 it works from wm3 and up.
you may recognize it.. its mce's party mode skin
tanx a million it worked on my htc 8125
tanx it worked bt didnt support album art.tanx all the same

Refresh of the Today screen or soft reset when you install a Today plug-in

Hello,
Exists some DLL library for CESetupDLL CabWiz.exe?
Thank you
just register your today plugin and use SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);
bye bye
Where it place the line SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0); in the code C/C++?
Thank you
nobody knows it?
Best is at the end of install_exit entry in SetupDll..
codeINSTALL_EXIT
Install_Exit(
HWND hwndParent,
LPCTSTR pszInstallDir,
WORD cFailedDirs,
WORD cFailedFiles,
WORD cFailedRegKeys,
WORD cFailedRegVals,
WORD cFailedShortcuts
)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);
return codeINSTALL_EXIT_DONE;
}
Correct?
Thank you
I need a example how to creating a registry key (and values) and refreshing the Today Screen Item in codeINSTALL_EXIT and delete file dll and key registry in codeUNINSTALL_INIT.
Thank you
Code:
codeUNINSTALL_INIT Uninstall_Init(
HWND hwndparent,LPCTSTR pszinstalldir)
{
//local variables
WIN32_FIND_DATA findfiledata;
HANDLE hfind;
TCHAR pszfilepath[50];
//initialize character array
memset(pszfilepath,0,sizeof(pszfilepath));
//copy file path to character array
//pszinstalldir variable will contain the
//application path \Windows
wcscpy(pszfilepath,pszinstalldir);
wcscat(pszfilepath,TEXT("\\MyToday.dll"));
//trying to find whether dll file exists or not
hfind = FindFirstFile(pszfilepath,&findfiledata);
if(hfind != INVALID_HANDLE_VALUE) //dll file exists
{
//delete dll
DeleteFile(pszfilepath);
}
//refresh today screen
SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);
//return value
return codeUNINSTALL_INIT_CONTINUE;
}
thanks for your help
I guess, if you have configured install script to create registry keys and copy dll file, you shouldn't removed them in the SetupDLL
saman-cz said:
I guess, if you have configured install script to create registry keys and copy dll file, you shouldn't removed them in the SetupDLL
Click to expand...
Click to collapse
why???????

HTC Touch/Vogue Android Questions

I have a HTC Touch/Vogue on US Cellular. The phone is not active and I am just playing around with it for right now. I want to just try to use it as an MP3 player right now. Not sure what WM version is on there, but it makes a difference I could check. I loaded Android 1.5 Build (dated 8-8-09). I had to switch the board selection to 3 in the default.txt to boot up. I have media in the media folder and in a different folder which adroid sees and will play in the media player. I have no sound what so ever though.
1. Hard reset from Android
2. Adjusted Volume in WM
3. Played same MP3 in WM
4. Adjusted volume in android
5. Tried to hear a ring tone in android.
All of these yielded no results. I can't seem to get the phone to make a sound. Weird thing was after a hard reset from android the vibrate started to work.
I have been searching for a while here and on other forums and can't find any solutions.
I am new to this whole thing and not sure what radio I have or how to find out. Any help is appreciated. There are more problems, but I can't even get this to work at all.
E/AudioHardwareMSM72XX( 115): Cannot open /dev/msm_pcm_out errno: 22
D/AudioHardwareMSM72XX( 115): AudioStreamOutMSM72xx::write(0xb618, 4096)
Thats what my logcat says when I hit play in the media player.
I/ActivityManager( 132): Starting activity: Intent { comp={com.android.music/co
m.android.music.MusicBrowserActivity} }
W/ActivityManager( 132): startActivity called from non-Activity context; forcin
g Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { comp={com.android.music/com.androi
d.music.MusicBrowserActivity} }
D/AudioHardwareMSM72XX( 115): AudioStreamOutMSM72xx::write(0xb618, 4096)
V/AudioHardwareMSM72XX( 115): open driver
E/AudioHardwareMSM72XX( 115): Cannot open /dev/msm_pcm_out errno: 22
D/AudioHardwareMSM72XX( 115): AudioStreamOutMSM72xx::write(0xb618, 4096)
V/AudioHardwareMSM72XX( 115): open driver
E/AudioHardwareMSM72XX( 115): Cannot open /dev/msm_pcm_out errno: 22
D/AudioHardwareMSM72XX( 115): AudioStreamOutMSM72xx::write(0xb618, 4096)
V/AudioHardwareMSM72XX( 115): open driver
E/AudioHardwareMSM72XX( 115): Cannot open /dev/msm_pcm_out errno: 22
D/AudioHardwareMSM72XX( 115): AudioStreamOutMSM72xx::write(0xb618, 4096)
V/AudioHardwareMSM72XX( 115): open driver
E/AudioHardwareMSM72XX( 115): Cannot open /dev/msm_pcm_out errno: 22
I/ActivityManager( 132): Displayed activity com.android.music/.MusicBrowserActi
vity: 607 ms
D/pppd ( 1232): sent P
I/ActivityManager( 132): Starting activity: Intent { action=com.android.music.P
LAYBACK_VIEWER comp={com.android.music/com.android.music.MediaPlaybackActivity}
}
D/AudioHardwareMSM72XX( 115): AudioStreamOutMSM72xx::write(0xb618, 4096)
V/AudioHardwareMSM72XX( 115): open driver
E/AudioHardwareMSM72XX( 115): Cannot open /dev/msm_pcm_out errno: 22
D/AudioHardwareMSM72XX( 115): AudioStreamOutMSM72xx::write(0xb618, 4096)
V/AudioHardwareMSM72XX( 115): open driver
E/AudioHardwareMSM72XX( 115): Cannot open /dev/msm_pcm_out errno: 22
D/AudioHardwareMSM72XX( 115): AudioStreamOutMSM72xx::write(0xb618, 4096)
V/AudioHardwareMSM72XX( 115): open driver
E/AudioHardwareMSM72XX( 115): Cannot open /dev/msm_pcm_out errno: 22
D/AudioHardwareMSM72XX( 115): AudioStreamOutMSM72xx::write(0xb618, 4096)
V/AudioHardwareMSM72XX( 115): open driver
E/AudioHardwareMSM72XX( 115): Cannot open /dev/msm_pcm_out errno: 22
I/ActivityManager( 132): Displayed activity com.android.music/.MediaPlaybackAct
Thats what it says before When i laungh the media player
try my mssmisonthemed build from the google code page. Let me know if it does that same thing.
i replaced system.img with the mssmisonsystem.img i downloaded at google code.
it proceed to linux, then after it hit rootfs successfully, then it goes to look for the system.img file, It said
dev/block/loop0 unmounted
Checking for Hero...
Hero/Rogers builds not found Assuming Ion variant
(Thats about all I could catch)
then
[ 39.377253] android_power: wakeup (0->0) at 206761
[ xx.xxxxxx] android_power: wakeup (0->0) at xxxxxx
Where the x's change digits, and it hits line after line of that for about 5 mins.
It never got out of linux
umm that's odd. That totally should happen. Try and clear your sd card and start again..
I tried your hero build from hero.zip at google code, that booted past linux but just goes to the Hero and HTC logos. I left it for 5 mins once it got past linux and nothing except the HERO and HTC logos cycling every min or so.
in the past formatting the card and starting over over hasn't done anything, but its worth a try.
socalracer said:
I tried your hero build from hero.zip at google code, that booted past linux but just goes to the Hero and HTC logos. I left it for 5 mins once it got past linux and nothing except the HERO and HTC logos cycling every min or so.
in the past formatting the card and starting over over hasn't done anything, but its worth a try.
Click to expand...
Click to collapse
did you set your res to 320x480?
i did hard reset, didnt do anything. i had w=320, h=428 in default.txt i will change it to w=320 h=480 and reboot.
Confirmed WM 6 Pro
CE OS 5.2.1620 (Build 18125.0.4.2)
Radio 2.32.00
ROM 1.21.573.1
ROM Date 7/03/08
after reboot and changing default.txt, same thing.
still getting this and have been since using your imgs
dev/block/loop0 FILE SYSTEM MODIFIED, even though it gets to HERO/HTC splash startup.
also to note, before starting all this android stuff, the device was master reset to defaults. Powered up and went through all the lil tutorials and setup everything, nothing has been done since then.
bumping for any more ideas?
After resolution on default.txt. set lcd.density=160
tried the lcd density, seemed to work the same maybe a little better. it boots(using hero build) to android for the first time and does the setup wizard, then when i hit finish, it looks like it reboots, goes back to hero/htc splash, then eventually it just stops at the htc screen and you can't see the animation any more, tried hard reset from there and it boots up, linux says the file system was modified and same thing stops at HTC spalsh screen with no animation after about the 5th time
EDIT: same results with lcd density not in the default txt. It responds very slow to the selections in the wizard. It has a problem usually getting to the wizard and sometime will say system process failed, wait or force quit, i say wait and then soon the wizard will open. tested this with a clean wipe of the card.
tried the zimage 8-14-09 said it resolved sound problems, still nothing. only difference was i had files in a folder that were mp3s, before it would recognize them, but now it won't, still couldnt get any of the ringers to play or the volume changing didnt emit any sound
socalracer said:
tried the zimage 8-14-09 said it resolved sound problems, still nothing. only difference was i had files in a folder that were mp3s, before it would recognize them, but now it won't, still couldnt get any of the ringers to play or the volume changing didnt emit any sound
Click to expand...
Click to collapse
The sound issues that it fixed were something else entirely.
What your error log states is that android cannot access your sound hardware.
What I might recommend is downloading ALL the files again. It's not unprecedented for a file to be slightly corrupted on download, and then some weird error like this occurs. Also, run SHA checksums on all the files you download. On the google-code site, you can find out what the SHA checksums should be by clicking on the description of the file (rather than the filename itself.) You should be able to find a free SHA checker on the internet... I haven't had the need for one lately, so I can't think of what you might wanna use.
i used fciv to check the checksums, 3 out of 3 files had completely different checksums using sha1. i downloaded the bundle android 1.5 8-8-09. guess i can try downloading the bundle again. hope this works
EDIT: the checksum for the zip file bundle i downloaded was right. then reextracted the files and the checksums matched up. then wiped the card and booted original 8-8-09 image. same thing no sound. i put a mp3 file in the media folder, it sees the file and plays it, not no volume. i readjusted the media volume while the player was open camera+volume button, that didnt do anything. When android boots up from linux this is on of the things it displays [ 12.134009] 7500 Audio : Speakerphone Off
still haven't been able to get this thing to work. this is frustrating
have you tried upgrading the rom? It should be 3.01.573.4. Go to device information under settings to check
socalracer said:
still haven't been able to get this thing to work. this is frustrating
Click to expand...
Click to collapse
You probably have an old radio, update to the latest rom for your carrier and audio will work.
Just downloaded the latest (system-haykuro.img) Hero build.
Now I only have problems with:
- Importing my SIM accounts
- The weather clock (don't know how else to name it, flipclock I think) is not displaying the weather
- My location on Google maps is not working. (Can't find my location)

Categories

Resources