windows-mobile

Detect KITL at runtime

In Windows CE it is a trivial thing to conditionally compile something if KITL is enabled: #if IMGNOKITL == 1 DoSomething(); #else DoSomethingElse(); #endif But I need to produce a user mode application that detects at runtime if KITL is enabled or not. It is possible? ...

Scroll Gestures not Passed to IScrollInfo implementing panel in Windows Phone 7 CTP

I am using a custom panel as a ItemsPanel for a ItemsControl in a with a custom template that provides for a scroll viewer. (See Xaml below.) So long as my panel does not implement IScrollInfo, scrolling works in this scenerio. I implement IScrollInfo and update my viewport and extent sizes in measure override. The scroll bar shows t...

Windows Mobile 6.5 Running Program List Icon

I've got an windows mobile 6.5 application I'm developing and am having trouble with one icon. At the top right hand of the screen there is an icon that, when clicked, will display a list of programs running the background with the option to close them. When my program is in this list, it's icon does not show up as the others do. I'm ...

How can I add a second language to a windows mobile 6.5 application?

I am loading the text in my app from a resource file. What is the process for adding a new resource that contains the second language. Any one have an example? ...

Access violation using LocalAlloc()

I have a Visual Studio 2008 Windows Mobile 6 C++ application that is using an API that requires the use of LocalAlloc(). To make my life easier, I created an implementation of a standard allocator that uses LocalAlloc() internally: /// Standard library allocator implementation using LocalAlloc and LocalReAlloc /// to create a dynamical...

Bluetooth external modem pairing problem - WM6.1

Hi folks, I'm working on an application using embedded visual c++ 4.0 and MFC (yes, it's a legacy system) which runs on windows mobile 6.1 and needs to pair with an external 56k modem via bluetooth. The app uses BthPairRequest (http://msdn.microsoft.com/en-us/library/ms887871.aspx) to do the pairing and WSASetService(http://msdn.microso...

CeSetUserNotificationEx with named event and CNT_TIME fails under services.exe

I have a service application, a simple dll running under services.exe. I can attach the VS debugger to services.exe, activate the service application dll and then single step it in the debugger without any problem. Now, I try to use CeSetUserNotificationEx to be notified at a certain time in the future. I use the CNT_TIME trigger type w...

How to move an image on a mobile phone with my finger?

I'm just getting started with Mobile Phone development and want to know how do I get an image (of a rock) to follow my fingers as I move it around the screen. Also, how can I 'push' the rock and let it roll a few pixels? ...

Retrieve default camera video extension from Windows Mobile

Is there any way to find out what is the default video extension for camera application? I am using CameraCaptureDialog to make the user use the camera and save the image to a specific file which then I consume in the application. However, there is a problem with the videos. Emulator gives .wmv video file while some devices I've been te...

GPS Power on HTC Snap/Ozone Dash 3G

I'm using an HTC Snap running WinMo 6.5 Standard and I have a seemingly simple requirement - when the device goes into "BacklightOff" power mode the application needs to continue to collect GPS location data. By default the device shuts down the GPS receiver. I've tried a boatlod of things to achieve this over the last 2 days. I've re...

What is faster with PictureBox? Many small redraws or complete redraw.

I have a PictureBox (WinMobile 6 WinForm) on which I draw some images. There is a background image that goes in the background and it does not change. However objects that are drawn on the picturebox are moving during the application so I need to refresh the background. Since items that are redrawn fill from 50% to 80% of the surface, t...

Auto screen rotation in windows 7 mobile

We have developed a application for HTC HD2 mobile, which has windows 7 CE. I have designed application to work for both the orientation (portrait, landscape) Now I wanted to achieve auto screen rotation (portrait to landscape and landscape to portrait) according to the device movement (some thing like iPhone). Can i ...

Store username and password persistent in windows mobile(6.0) app

Hi I need some help developing my mobile app. I have to store user data permant (name, password), so what is the best way to do that? I dont know a special API for it, so where to store persistent data's on a windows phone? Maybe in the win mobile registry or inside a file? Or should I use a light database? Someone has experience with...

Am I missing some controls for windows mobile?

I'm a C# developer taking my first steps in Windows Mobile development. I've installed Visual Studio 2008 SP1 and the Windows mobile 6 Pro and Standard SDK's. Now I am trying to create a simple winforms application. The problem is that when I set the Target Platform to Windows Mobile Standard, I seem to be missing a lot of controls. For...

Can Windows Mobile Synch Services use a business layer

We're building a Win Mobile 6 warehouse app which needs to update our server based corporate DB. We've got a C# business layer that sits on our app server and we'd really like our warehouse app to go through this. We also like MS Synch Services. Is there a way to combine the two ie can we use sync services but get them to go through o...

Way to easily lock a file on Windows Mobile

I have a SQL Server CE Database file that gets re-deployed every time I run. This makes testing difficult. The only way I have found that allows me to get around it is to open the database file on the device using Query Analyzer. My best guess is that this locks the file. Opening the db (and putting in the password) takes some ti...

Adaptive windows mobile application

What is a good approach to write a windows mobile app that can run on different device, screen resolution, screen size? In my mind, I'd like to write the form once and be adaptive. But I'm hearing sometimes that you write the form for different form factors, different screen size, different orientation (portrait/landscape) .... I just...

When does an application crash silently and when does it crash with a "send report" in Windows Mobile

I noticed that there are at least two kinds of crashes in Windows Mobile Silent Crash The application crash but there is no "send report" dialog prompted by the OS Crash with "send report" The application crash and there is a "send report" dialog prompted by the OS As an addition, each of the crashes above sometimes cause the applica...

Record mp3 or wav of smartphone calls

Is that possible? ...

deploying application in windows mobile professional 6.0 emulator gives the error :"there is not disk space"

I am trying to deploy a windows mobile application built with c# .net which uses a native dll, and i get the following error: Deployment and/or registration failed with error: 0x8973190e. Error writing file '%CSIDL_PROGRAM_FILES%\MyNativeCode.dll'. Error 0x80070070: There is not enough space on the disk. Please suggest any solutions. ...