windows-mobile

Widcomm bluetooth : how to open the virtual COM

偶尔善良 提交于 2019-11-30 21:05:42
问题 i'm trying to use the Widcomm bluetooth stack by Broadcomm and it should work but there's one thing that still i cannot understand: HOW CAN I AUTOMATICALLY OPEN THE VIRTUAL COM WHEN I NEED TO COMMUNICATE? i am trying to use SPP (Serial Port Profile) but the documentation with the SDK is not so exaustive. PLEASE, I JUST CANNOT USE 32FEET! I wrapped the SPP Server part of the API: [DllImport("wcbts.dll", SetLastError = false, CharSet = CharSet.Unicode)] internal static extern IntPtr

Store an image in a SQL Server CE database

☆樱花仙子☆ 提交于 2019-11-30 20:59:23
Does any one know of an example on how to store an image in a SQL Server CE database? What data type should the column be? (I am guessing binary.) I use Linq-To-Datasets. Is it possible using that to put the image into the database and pull it out again later? Thanks for any advice. Here is how I did it: MemoryStream stream = new MemoryStream(); myBitmapImage.Save(stream, ImageFormat.Png); myInsertLinqToDataSetRow.IMAGE_COLUMN = stream.ToArray(); To load it back out again I did this: MemoryStream stream = new MemoryStream(myLinqToDataSetRow.IMAGE_COLUMN); myBitmapImage.SignatureImage = new

Reboot Windows Mobile 6.x device programmatically using C#

旧街凉风 提交于 2019-11-30 20:58:40
My HTC HD2 can't be rebooted from OS, just shut down. So I want to write a small program to do that. Is it possible to programmatically reboot Windows Mobile 6.x device using C#? Trevor Balcom You should use the documented ExitWindowsEx API. IOCTL should only be used on platforms lacking the ExitWindowsEx function call (Pocket PC 2000, 2002, and 2003). See the MSDN doc for more information. [DllImport("aygshell.dll", SetLastError=""true"")] [return: MarshalAs(UnmanagedType.Bool)] static extern bool ExitWindowsEx([MarshalAs(UnmanagedType.U4)]uint dwFlags, [MarshalAs(UnmanagedType.U4)]uint

How to add attributes to xml using XmlDocument in c# .net CF 3.5

杀马特。学长 韩版系。学妹 提交于 2019-11-30 17:37:18
I need to create an attribute "abc" with the prefix "xx" for an element "aaa". The following code adds the prefix but it also adds the namespaceUri to the element. Required Output: <mybody> <aaa xx:abc="ddd"/> <mybody/> My Code: XmlNode node = doc.SelectSingleNode("//mybody"); XmlElement ele = doc.CreateElement("aaa"); XmlAttribute newAttribute = doc.CreateAttribute("xx","abc",namespace); newAttribute.Value = "ddd"; ele.Attributes.Append(newAttribute); node.InsertBefore(ele, node.LastChild); The above code generates : <mybody> <aaa xx:abc="ddd" xmlns:xx="http://www.w3.org/1999/XSL/Transform"/>

Finding the storage card path on WM6

可紊 提交于 2019-11-30 14:19:23
Is there an easy way to find the storage card's path on a Windows Mobile device when there is a storage card and a bluetooth ftp connection? Joel Keep in mind that "\Storage Card" is english oriented. A device made for a different region may have a different name. The name of the storage card path on my device varies with how I am using the device. Some time ago in the MSDN forms I responded to a few questions on how to detect the storage cards in the file system and how does one get the storage card's capacity. I wrote the following could are a response to those questions and thought it would

Pocket PC/Windows Mobile: How to detect smart minimize

核能气质少年 提交于 2019-11-30 13:50:17
How do I detect when my Compact Framework application is being smart-minimized (smart minimize is what happens when the user clicks the "X" button in the top-right corner on a Pocket PC)? The Deactivate event isn't the right way because it occurs in circumstances other than minimization, such as when a message box or another form is shown on top of the main form. And the form's WindowState doesn't help because there is no "Minimized" WindowState on .NET CF. I heard that by setting MinimizeBox = false, my app will be closed instead of minimized. But I actually don't want my app to close, I just

Getting started with windows mobile development [closed]

馋奶兔 提交于 2019-11-30 10:41:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have a personal pet project I'd like to start on, targeted at windows mobile 6. I've never done win mobile dev and would like to know what resources are out there, good tools to use, perhaps a jump start tutorial, as well as any gotchas I might want to keep in mind when developing for the platform? 回答1:

Making a Windows Mobile device emulate a Bluetooth HID device

若如初见. 提交于 2019-11-30 10:30:13
I'm looking for a way to connect a Windows Mobile device to a PC via Bluetooth and have it show up on the PC as a HID device (i.e. Keyboard or Mouse). I imagine this would mostly be a matter of modifying the available Bluetooth profiles on the Windows Mobile device so that it exposes a Bluetooth HID interface... Is that even possible? Would it require a custom driver or something on the WinMo device?? For the most part, my main requirement is that it not require ANY special software on the PC side, it should simply use the built in Bluetooth stack and think that the WinMo device is actually a

Scheduling Windows Mobile apps to run

我们两清 提交于 2019-11-30 07:27:50
How do you schedule a Windows Mobile application to periodically start up to perform some background processing. For example, assume I'm writing an email client and want to check for email every hour, regardless of whether my app is running at the time. The app is a native C/C++ app on Windows Mobile 5.0 or later. the function you need is: CeRunAppAtTime( appname, time ) that isn't the exact signature, there is also CeRunAppAtEvent , they should both be in the MSDN docs (but linking is useless the way MSDN urls always change) The normal way to use these (and RunAppAtTime in the managed world

VS 2008 Professional, Smart Device .NET C# project - slow build

寵の児 提交于 2019-11-30 07:05:37
I have VS 2008 Professional and a Smart Device .NET C# project. I have ~100 cs files in total. The build takes a very long time, I have to wait for linker approx. 1min (60s) every time I compile the project. I have Core i3, 4GB RAM, 7200rpm disk. What causes this and how can I optimize the build? Any Visual Studio options? If you follow the advise from Hans Passant's comment and set MSBuild to diagnostic output it will give a clearer picture of just what is taking the time. If you find that your build is hanging on the Licensing Compiler (LC.exe) then this could be due to it trying to call a