windows-mobile

Is UTC or local time used with time-based notifications?

I have a time in the future when I want a notification to occur and need to know if ::CeSetUserNotificationEx expects UTC or local time in the stStartTime field of the CE_NOTIFICATION_TRIGGER structure if the dwType field is set to CNT_TIME? ...

Get time zone or local time from cell tower (GPRS)

I have been asked to set the system time of a Windows Mobile 6.0 handheld to the "local time." The local time in this case means the current time of the time zone the handheld is physically located in. Is there a way to request the local time from the GPRS cell tower? ...

Is there a way to get a real skin for my Windows Mobile Emulator

I am developing using the Symbol/Motorola MC70. I use the emulator that comes with Visual Studio and the SDK for much of my development. The standard skin for that is a simple windows mobile device. Is there a way to get the skin for the MC70 for the emulator? ...

How to get encoding from MAPI message with PR_BODY_A tag (windows mobile)?

Hi, everyone! I am developing a program, that handles incoming e-mail and sms through windows-mobile MAPI. The code basically looks like that: ulBodyProp = PR_BODY_A; hr = piMessage->OpenProperty(ulBodyProp, NULL, STGM_READ, 0, (LPUNKNOWN*)&piStream); if (hr == S_OK) { // ... get body size in bytes ... STATSTG ...

Will NKDbgPrintfW be compiled to nop in release build?

I know about and have used the macros DEBUGMSG, RETAILMSG, ERRORMSG, that all take a condition parameter. For general formatted debug output, though, I want to use ::NKDbgPrintfW directly and wonder if someone knows if it compiles to a nop in optimised release builds or if my own macro wrapper around it with #ifdef DEBUG is still needed?...

Should I use Mutex OR Critical Section for Windows Mobile RIL

Hi, I am using Radio Layer Interface (RIL) Native APIs in Windows Mobile application. In this API, the return values / results of most functions are not returned immediately but are passed through a callback function which is passed to the RIL API. Some usage examples are found at XDA Develompent Tools and Google Gears Geolocation API....

Portability among mobile platforms

Do any libraries or other development resources exist that can help reduce the effort involved in porting applications between various mobile platforms? In particular, I am interested in supporting iPhone, Android, and Windows Mobile. Some areas of concern include UI, client-server communication, and hardware support (e.g., camera, GPS...

How to authenticate a Windows Mobile client calling web services in a Web App

I have a fairly complex business application written in ASP.NET that is deployed on a hosted server. The site uses Forms Authentication, and there are about a dozen different roles defined. Employees and customers are both users of the application. Now I have the requirement to develop a Windows Mobile client for the application that al...

On WindowsMobile, how can i tell what other processes are reserving shared memory space?

On WindowMobile 6.1, I am using VirtualAlloc to reserve 2MB chunks, which will return me an address from the large shared memory area so allocations do not count against my per process virtual space. (doc here: http://msdn.microsoft.com/en-us/library/aa908768.aspx) However, on some devices i notice that I am not able to reserve memory ...

Inconsistent results using RegistryNotifyCallback vs RegistryNotifyWindow

(I'm on WM 6.5) I started using ::RegistryNotifyCallback when monitoring parts of the registry, but noticed that some notifications that should arrive never did. I switched to ::RegistryNotifyWindow and the missing notifications arrived as expected. I don't remember the repro steps, since it was a while back, but now I'm forced to go ba...

Save image in Windows Mobile 5.0 using C#

Hi I am saving image in windows mobile application using C#.My code is SaveFileDialog dialog = new SaveFileDialog(); if (dialog.ShowDialog() == DialogResult.OK) { aspectRatioPictureBox1.Photo.Save(dialog.FileName, System.Drawing.Imaging.ImageFormat.Bmp); } In the above code i am able to save only in folders of...

Gradient fill bitmap and CreatePatternBrush just gives black fill instead of gradient

I'm trying to create a Gradient Brush in windows mobile as follows: HBITMAP hBitmap = CreateBitmap(16, 16, 1, 16, NULL); HDC hDC = CreateCompatibleDC(NULL); HBITMAP hPrevious = SelectObject(hDC, hBitmap); TRIVERTEX vert[2]; GRADIENT_RECT gRect; //... fill in vert and gRect GradientFill(hDC, vert, 2, &gRect, 1, GRADIENT_FILL_RECT_V); Sel...

C# datagrid click position

Hi, Does anybody know how can I determine where the user clicked in a DataGrid control ? I'm using .NET CF with Windows Mobile 6. What I need to know is whether the user clicked on the selected cell or on an empty area (not covered by columns or rows). Is there a way to retrieve it from EventArgs ? Thanks. ...

How do I get the IP address of the desktop from windows mobile when cradled using .NET CF?

I am developing a windows mobile 6 application using .NET CF 3.5. I need to get the IP address of my desktop computer when the device is cradled in order to initiate a synchronization process from the mobile device. I have tried Dns.GetHostEntry, but this seems to return the IP address of my Pocket PC emulator. Any ideas? ...

DirectX: Render to a screen buffer without using a render target

Hello, I'm writing an open source 2D game engine, and I want to support as many devices and platforms as possible. I currently only have Windows Mobile though. I'm rendering using DirectX Mobile, with DirectDraw as a fallback path. However, I've run into a bit of trouble. It seems that while the reference driver supports createRenderTa...

Handle Windows Mobile Click event so that it doesn't "queue" while my program is blocking

I've written a simple application for WinMo 6.x to entertain my daughter. It holds a set of animal image to animal noise pairs and randomly displays one of the images. When the image is clicked the animal noise plays and the two year old is distracted :-) and then the next image is displayed. However, since she tends to bash at the scre...

Compact Framework : Read a SQL CE database on a PDA from a PC

Hello, I have tasked with upgrading a CF Framework 1.1 suite of apps. Currently, the PC starts a server [after confirming via RAPI that the device exists and is connected] and spawns a app on the PDA as the client. The client process on the PDA talks with the db on the PDA and returns records to the PC app [using SQL CE 2.0. OpenNETCF ...

Error LNK1223 on ARM builds

eMbedded Visual C++ 3 project, building for PocketPC 2000. On the ARM build, the linker throws the following error: fatal error LNK1223: invalid or corrupt file: file contains invalid pdata contributions On SH3, the project compiles, links, and works. The project also works when built for ARM on Visual C++ 2005, but I need to test buil...

WM6.5 embedded Internet Explorer finder scrolling

I'm writing a .NET 3.5 application targetted for Windows Mobile 6.5. My application uses an embedded IE control to display content. The IE application allows the user to finger scroll around the webpage (i.e. touch the screen and drag instead of using the scrollbar). My IE control has a scrollbar and when I emulate the gesture, I high...

OpenNETCF 1.4 Vs OpenNETCF 2.3

I have a chance to upgrade a legacy suite of applications currently using .net 1.1 to the newest .net framework. It uses OpenNETCF 1.4 to communicate with the mobile device. Is it worthwhile to upgrade from opennetCF ver 1.4 to ver 2.3 as well? Should I be expecting significant roadblocks/issues while doing so OR if anyone has alrea...