windows-mobile

Directdraw: Rotate video stream

旧时模样 提交于 2019-12-04 05:26:53
问题 Problem Windows Mobile / Directdraw: Rotate video stream The video preview is working, all I need now is a way to rotate the image. I think the only way to handle this is to write a custom filter based on CTransformFilter that will rotate the camera image for you. If you can help me to solve this problem, e.g. by helping me to develop this filter with my limited DirectDraw knowledge, the bounty is yours. Background / Previous question I'm currently developing an application for a mobile

create smart device cab through msbuild

試著忘記壹切 提交于 2019-12-04 05:22:26
问题 Is it possible to use an msbuild task to build a smart device project into a cab file for deployment. I've seen a couple of pages on the web: http://guystarbuck.blogspot.com/#115584006223003606 http://blog.opennetcf.com/ctacke/2008/09/18/AutomatingCABFileGenerationWithMSBUILD.aspx but I can't believe that you have to go to that much trouble for something that should be simple! Thanks. 回答1: It is that difficult and, yes, that is lame. 回答2: You can use CAB42 in order to automate the build

Create a .NET Windows Service on Windows Mobile 6.x

痴心易碎 提交于 2019-12-04 04:42:50
问题 I would like to create a windows service in .NET that runs on WinMo 6.x.... There r a lot of documentation for how to do that in MFC (and non-MFC) http://msdn.microsoft.com/en-us/library/ms838599.aspx but I can't find any pointers for .NET stuff, is it even doable? Thanks, 回答1: I'm pretty sure (not 100%) you can only create a native service DLL (which means no .Net for this). A workaround is to create a console app (or a regular app that does everything from its Main method) and drop it in

TargetInvocationException: Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar)

余生颓废 提交于 2019-12-04 04:00:06
问题 I get a TargetInvocationException randomly when loading Resources in my .NET Compact Framework 3.5 project (running on Windows Mobile 6). They look similar to this stack trace: FATAL 2012-11-13 14:17:00,657 [23768895] TargetInvocationException - mobileX.MIP.Post.Presentation.Program System.Reflection.TargetInvocationException: TargetInvocationException ---> System.Exception: Exception at Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar) at System.Drawing.Bitmap._InitFromMemoryStream

Visual Studio compiles but the exe isn't there

流过昼夜 提交于 2019-12-04 02:59:20
问题 Source code that compiles fine on other peoples environments won't correctly work in my environment. When I do a rebuild the compile occurs but when visual studio goes to move the exe from /obj/debug/{solution} to /debug/{solution} it cannot find the exe in the /obj/debug/{solution}. To make this even more crazy even after I reinstall visual studio it doesn't work. On other people environments it works find. Please note that this is a windows mobile 6, compact framework 3.5 project, Visual C+

Milliseconds in DateTime.Now on .NET Compact Framework always zero?

岁酱吖の 提交于 2019-12-04 01:56:52
i want to have a time stamp for logs on a Windows Mobile project . The accuracy must be in the range a hundred milliseconds at least. However my call to DateTime.Now returns a DateTime object with the Millisecond property set to zero. Also the Ticks property is rounded accordingly. How to get better time accuracy? Remember, that my code runs on on the Compact Framework, version 3.5. I use a HTC touch Pro 2 device. Based on the answer from MusiGenesis i have created the following class which solved this problem: /// <summary> /// A more precisely implementation of some DateTime properties on

Windows Phone 8 error on fresh application

◇◆丶佛笑我妖孽 提交于 2019-12-04 01:34:43
问题 i am using visual studio 2012 n windows 8 enterprise edition to create a windows phone 8 application! as i create a fresh application and want to run it just to see if it works, this error pops up instantly! System.NullReferenceException Object reference not set to an instance of an object. at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal) at Microsoft.Expression.DesignHost

Unique Machine ID for a Windows CE Device

丶灬走出姿态 提交于 2019-12-03 23:20:09
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 they both return ERROR_NOT_SUPPORTED ( 0x80070032 ). Do I need to include some package from the wince

WM 5 SDK Symbol

南楼画角 提交于 2019-12-03 21:50:37
We have a large number of Window Mobile Devices (Symbol MC35 & MC70). I want to write a small app that gets the device serial number and simcard serial number (not phone number). I have tryed using the Symbol SDK and I can get the Device Serial Number for the MC70s as they have a Electronic Serial Number Module. But not sure how to get the Sim Details. If i am unable to get the Device Serial Number From the MC35s can I get the IMEI number? The porpose behind this is so I can keep a upto date record of what sim is in what handheld as any time. I am going to write the data to a registy file

How can I expose only a fragment of IList<>?

痴心易碎 提交于 2019-12-03 17:22:57
问题 I have a class property exposing an internal IList<> through System.Collections.ObjectModel.ReadOnlyCollection<> How can I pass a part of this ReadOnlyCollection<> without copying elements into a new array (I need a live view, and the target device is short on memory)? I'm targetting Compact Framework 2.0. 回答1: Try a method that returns an enumeration using yield: IEnumerable<T> FilterCollection<T>( ReadOnlyCollection<T> input ) { foreach ( T item in input ) if ( /* criterion is met */ )