windows-mobile

Unique Machine ID for a Windows CE Device

こ雲淡風輕ζ 提交于 2019-12-21 06:41:19
问题 I need to generate unique machine ID for a CE 6.0 device. On Windows OS, I was using the WMI to obtain some hardware identifiers from which I constructed this ID. Apparently, WMI is not supported on Win CE so I am looking for alternatives. At the moment I am playing with OS image that I have constructed in Platform Builder and testing my app in emulator, only later I will be delivered the real WinCE device. I have tried both GetDeviceUniqueID and KernelIoControl(IOCTL_HAL_GET_DEVICEID,... but

Windows Mobile - Compact Framework program as a service?

匆匆过客 提交于 2019-12-21 05:15:10
问题 What is the best way to have my C# Compact Framework program running in the background on a Windows Mobile device ? I need to respond to different events, such as a text message arriving with a specific content. I would like not to start up any UI when the process is started, but just run in the background until UI is needed. How can this be done ? 回答1: Just create the app as a Console app. If you need a message pump, you need to call Run without any parameters, and the CF doesn't have that.

Update/Insert to a table using SQLCeResultSet

心已入冬 提交于 2019-12-20 21:02:14
问题 I have a SQL Compact Edition Database that I update periodically (via web services). The part where I write to the database is taking way too long. I am currently doing it with Linq to Datasets (as seen in this question). I have heard that if I do it with with SQLCeResultSet that it will work faster. So, given that I have a table like this: tblClient +- CLIENT_ID {Unique identifier} (Primary Key) +- CLIENT_NAME {varchar (100)} +- CLIENT_ACTIVE {bit} And I have it in object that I get from my

On what .NET Framework(s) is DotNetOpenAuth available?

旧时模样 提交于 2019-12-20 17:29:38
问题 Most (all?) OAuth resources - both information about the protocol and code libraries for easily using them in your own applications - one seems to find on the internet seem to assume the application you are using it in is a web application. I would however like to start using OAuth in my windows mobile Twitter client for interactions with Twitter where I now use Basic Authentication through a set of simple methods I hand rolled. If I'm correct, Basic Authentication is about to be deprecated

.NET CF 3.5 mobile app building slowly in VS 2008

纵然是瞬间 提交于 2019-12-20 15:32:50
问题 I have been working with a Windows Mobile 6 app that is built with .NET Compact Framework 3.5 in Visual Studio 2008. The application builds incredibly slow, spending a majority of the time doing the PlatformVerificationTask. How do I speed up the build? 回答1: The best way to stop the PlatformVerificationTask in a distributed development environment I would suggest adding the following to the mobile app's project file: <Target Name="PlatformVerificationTask"> </Target> This will overwrite the

Building Compact Framework applications with VS2010 (without VS2005)

你。 提交于 2019-12-20 11:06:26
问题 I want to perform a .NET CF 2.0 build using VS2010. I know it's not supported "normnally," but I've seen this answer: ( .NET Compact Framework with Visual Studio 2010? ) ...and I want to use that approach. The blog post cited there says I need to modify the .csproj files for the .NET CF projects, to point to a particular Microsoft.CompactFramework.Common.targets . But I don't have that file. I figured I needed to install the Windows Mobile 6 Standard SDK to get it. I tried installing it and

meta “viewport” device-width: Wrong width small on Opera Mobile 9.7 (10 works)

荒凉一梦 提交于 2019-12-20 09:03:07
问题 For my current mobile web project I use the meta "viewport" tag to instruct the mobile browser to use a scale of 1:1 with the devices' width: <meta name="viewport" content="initial-scale=1.0, width=device-width, height=device-height, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> This works on IE mobile, iPhone Safari and even on Opera 10 beta, but it doesn't on Opera 9.7, which is by default installed on HTC HD2. The HTC HD2 got device dimensions of 480x800, so the viewport

How do you resize a Bitmap under .NET CF 2.0

余生颓废 提交于 2019-12-20 05:42:38
问题 I have a Bitmap that I want to enlarge programatically to ~1.5x or 2x to its original size. Is there an easy way to do that under .NET CF 2.0? 回答1: One "normal" way would be to create a new Bitmap of the desired size, create a Graphics for it and then draw the old image onto it with Graphics.DrawImage(Point, Rectangle) . Are any of those calls not available on the Compact Framework? EDIT: Here's a short but complete app which works on the desktop: using System; using System.Drawing; class

Controlling form elements from a different thread in Windows Mobile

喜欢而已 提交于 2019-12-20 05:19:23
问题 Trying to get a thread to change form controls in Windows Mobile. Throws an unsupported exception. Does this mean it cant be done at all? If not, how do I go about this? Forms are created in the Parent/Main thread then a thread is created to do some work in the background but I want to make it so the Background thread can update the form to show its completed... 回答1: You cannot access GUI items on a non-GUI thread. You will need to determine if an invocation is required to the GUI thread. For

Pocket PC: Draw control to bitmap

 ̄綄美尐妖づ 提交于 2019-12-20 05:09:31
问题 Using C#, I'm trying to draw an instance of a control, say a panel or button, to a bitmap in my Pocket PC application. .NET controls has the nifty DrawToBitmap function, but it does not exist in .NET Compact Framework. How would I go about painting a control to an image in a Pocket PC application? 回答1: DrawToBitmap in the full framework works by sending the WM_PRINT message to the control, along with the device context of a bitmap to print to. Windows CE doesn't include WM_PRINT , so this