windows-mobile

uh-oh windows mobile threading issues !

specifically WM6x, winCE5x Now my current understanding from trawling the msdn etal is that the IMAPIAdviseSink::OnNotify callback can be made from any old thread; from (ce)mapi or perhaps even from a third-party service provider. Under WM6x, i cannot seem to coax an in-thread response by invoking HrThisThreadAdviseSink, since while th...

Check to see if a Windows Mobile Device is Idle

I have a windows mobile 5 program (compact framework 3.5) that I need to be able to detect when the device is idle. Right now I am just checking to see if the backlight is off. Like this: [DllImport("coredll.dll", EntryPoint = "sleep", SetLastError = true)] internal static extern void sleep(int dwMilliseconds); .... //Get the curre...

GetSystemPowerState Output not defined in pm.h

I am trying to get the user idle state of my Windows Mobile device. When I run the function GetSystemPowerState (after 15 min of not touching the device) I get the following value: Dec: 302055424 Hex: 0x12010000 Bin: 10010000000010000000000000000 I was hoping that PowerState & POWER_STATE_USERIDLE == POWER_STATE_USERIDLE would be t...

Change the Skin of the Designer for Windows Mobile In VS

Is there a way to change the skin you see in Visual Studio from the standard form? I have a skin I use for my emulator. I would like to see that skin in my Visual Studio designers. Anyone know a way to do that? ...

Difficulty trying to stream an image in a windows mobile API without invoking the inbuilt camera API

Hi I am working on trying to create an API on Asus Windows Mobile 6 phone that can capture an image/video with some visual cues/feedback(such as a box drawn in the middle) while the user is capturing the image/video. While it is possible to invoke the inbuilt camera capture application of the mobile phone, but it is difficult to play a...

Disable time and date editing on Windows Mobile

Hi, Is there a way to disable time and date editing on a Windows Mobile device (via APIs or the registry)? I have an application using the time and date of a Windows Mobile PDA and I don't want the user to change it (the time and date) - unless - he/she has some kind of administrative rights. I haven't find a way to do it with the menu...

Receive many datagrams from several hosts using winsock

Dear stackers. I am developing an application that distributes rendering across several devices (a university project). Each frame consists of several blocks (16x16 pixels), and each device is "assigned" a number of blocks to be rendered. These blocks, when rendered, are compressed and serialized into a buffer until the max size of thi...

How can I send a file via wi-fi between two pocket PCs?

I have two Pocket PCs and I want write an application that be able to send a file via Wi-Fi, as you know the Pocket PC's OS is Windows-mobile. Can I use J2SE ?(Because windows-mobile) or I must write J2ME Application? Please kindly advise me, with a sample source code about that. Thanks a lot ... ...

Hard to resize column width in windows mobile

I have custom headers in ListCtrl. While it's possible to resize their column width in windows mobile, it's hard to do because you have to hit the line separator exactly and also have to tap, hold and drag as opposed to tap and drag in excel. Is there anything I can change programmatically to increase the tap area to adjust the column w...

play 3gp videos on windows mobile 5 and 6 from code?

currently im able to play .wmv videos from my application using shell execute which plays it in the windowsmedia player. However I need to be able to play .3gp videos which unfortunately the windows meadia player does not support. Is it possible via api etc to play 3gp videos on win mobile 5 and 6 devices? ...

Sharing code between Android and Windows Mobile

I'm doing some initial research on smart phone development, and I noticed that Android and Windows Mobile both support c++ for application development. I was curious if anyone had any experience trying to manage shared files between both Android and Windows Mobile, and to what extent that code can be shared? e.g. no user interface can ...

Windows Mobile 6.5 modern GUI development

Hello How to approach a modern GUI development in Windows Mobile 6.5. I can see in .NET CF 2.0/3.5 only legacy common controls, no alpha blended controls, no fading etc. Comparing to Android or Symbian, Windows Mobile 6.5 look-a-like of applications is very elderly. Is there support for WPF in Windows Mobile 6.5? Thanks and Regards Do...

windows media player command arguments

Hi There, Is it possible to launch a mp3 or wmv file using windows media player at a specified time offset? e.g I watched 10 seconds of video and closed it. the next time my app launches the video it starts playing a timeline of 10 seconds. The videos and mp3s are being launched in windows mobile 5 and 6 apps. ...

Windows CE vs Windows Mobile

I often see these terms: Windows CE Windows Mobile Pocket PC Windows Mobile Smart Phone I know the difference between the second 2, but I am confused on the first. I thought it was the name of the Mobile OS prior to Windows Mobile 5. But I am seeing it more often in current products. (Here is a current MS Form for developing on it...

SQLCEException was unhandled: Internal Error: Cannot open the shared memory region

I am trying to do a TableAdapter.Fill(dataTable) and it fails with the above error. Here is the code in ...DataSet.Designer.cs [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] public virtual int Fill(Zenwar...

Windows 7 phone market place vs xbox market place?

When making games for windows 7 phone will there be separate places for XNA based games and silverlight games? I'm curious how this will work. Are all XNA based games going to work out of box? How would someone differentiate an app developed specifically for phone vs just a port? Also would this be $200 per year to have a game hosted o...

set onclick event for image on Pocket IE

The code works on IE and Firefox but not on Pocket IE on windows mobile. Does anyone have an idea how I can trigger an event when clicking on an image on Pocket IE? <input type="image" src="img/speaker.png" onclick="alert('bla')"> I also tried <img src="img/speaker.png" onclick="alert('bla')"/> does not work either. ...

Building WM C++ project outside an IDE

Hello, I'm wondering if there is some comprehensive tutorial or someone of you can help me solve this problem. I need to build Windows mobile project written in C++ but I need to do so outside of any IDE. So I would be very grateful if someone could direct me, thank you. ...

Is there a packet sniffer for Windows Mobile?

I'm looking for a tool along the lines of Fiddler, or better yet Wireshark, that would run on a Windows Mobile 6.1 device. I have an app which calls some webservices on one of our servers, and I want to make sure it it going out to the proper address. Thanks in advance. ...

[C#] Array as DataSource of a DataGrid: how to customize columns?

In my Windows Mobile .NET application I have a simple array of object with the data I want to display in my DataGrid. To do this, I simply call: myDataGrid.DataSource = myArray; This works, but I have a problem with it: it uses all properties as columns and uses the names of the properties as the column headers. I can't figure out how ...