windows-mobile

How to differ between Windows Mobile 6.5.3 and previous versions during runtime?

↘锁芯ラ 提交于 2019-12-13 13:59:15
问题 Is there an established or unofficial way of finding out if my application is running on a Windows Mobile 6.5.3 device or if it's a previous version? Managed or native doesn't matter and I don't mind interop-ing. 回答1: Since I want some reputation ;) Here is the information I found on the web: How to detect Windows Mobile 6.1 (Detecting AKUs) List of AKUs on channel9 Windows CE / Windows Mobile Versions 回答2: Use System.Environment.OSVersion That gets the CE version number, which would have to

SQLite Interop DLL Missing Method - Windows Mobile CF

本小妞迷上赌 提交于 2019-12-13 13:50:22
问题 In my Windows Mobile project, I have added the SQLite.Interop.066.DLL , set the [ Build Action ] = [ Content ] and set the [ Copy to Output Directory ] = [ Copy if newer ]. Still, after I open my my connection, I receive the unhandled Missing Method Exception message " Can't find PInvoke DLL 'SQLite.Interop.DLL " whenever I attempt to execute the reader on the SQLiteCommand . What is wrong? 回答1: Apparently, SQLite is not being managed very well. This was a bug someone reported over a year ago

What is the fastest way to find data in SQLCE in Windows Mobile (using C#)?

China☆狼群 提交于 2019-12-13 08:59:52
问题 What is the fastest way to find data in SQLCE in Windows Mobile (using C#)? I have a database with one million records. Is the fastest way an SQL query, a DataReader, or what? 回答1: Use an index for your where clause and a SqlConnection. 回答2: By far the fastest way is to not use the query processor at all. Index the table to the field you want to search on and then use a SqlCeCommand with TableDirect and open a reader. Just adding the query procesor makes it an order of magnitude slower. 回答3:

How to load the high resolution images in windows mobile

主宰稳场 提交于 2019-12-13 08:03:44
问题 Can any one tell me, how to load the high resolution images in windows mobile using C#. I am getting OutOfMemoryException for that. 回答1: Use IImagingFactory and IImage, they are com objects that were introduced in WCE 5.0. You will have to write com wrappers for them, or use OpenNETCF which has them already. See here for a blog post from Chris Lorton on alphablending and the imaging factory classes and how to use them from .net 回答2: This code shows a form with a 2mb jpg image (3000x2000 or so

Separating text from .txt into colums in listview (VB.net mobile)

a 夏天 提交于 2019-12-13 05:53:08
问题 I want to separate each text into their own Column in VB.net. How do I achieve this? Each entree is seperated with "|" . My Code: Private Sub MenuItem3_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem3.Click Dim folder As String = Environment.GetFolderPath(Environment.SpecialFolder.Personal) Using sw As StreamWriter = File.AppendText("\My Expenses.txt") sw.WriteLine(DateTimePicker.Text + Space(1) & "|" & Subject.Text + Space(4) & "|" & Category.Text + Space

How to identify the storagecard removed notification of smartphone devices

情到浓时终转凉″ 提交于 2019-12-13 05:17:18
问题 I am using windows mobile device, i want to know how to get notification if the storage card is removed from the device.I have DLL it has all the imported methods which send messages if the card is added or removed, but this case works fine if the DLL is in the device memory.If the application is installed in storage card, then DLL will be in Card as soon as card removed,the DLL goes out and i will not get any information from the phone that card removed or some thing like that.i am

Windows Mobile / Directdraw: Rotate video stream

血红的双手。 提交于 2019-12-13 05:15:09
问题 Follow up from: Directdraw: Rotate video stream I managed to preview the camera's video stream, but the image is rotated by 90° to landscape mode. I'm now searching for a way to rotate the camera image back to normal, but the problem is I don't even know where to start: Is this done in the VideoCaptureFilter, the VideoInfoHeader, in a DDSURFACEDESC structure? Can the rotation only be done by using an additional filter? Is it a filter setting? 回答1: I found out that this is usually done with

LocalAlloc and LocalRealloc usage

空扰寡人 提交于 2019-12-13 04:56:23
问题 I have a Visual Studio 2008 C++ Windows Mobile 6 application where I'm using a FindFirst() / FindNext() style API to get a collection of items. I do not know how many items will be in the list ahead of time. So, I would like to dynamically allocate an array for these items. Normally, I would use a std::vector<> , but, for other reasons, that's not an option for this application. So, I'm using LocalAlloc() and LocalReAlloc() . What I'm not clear on is if this memory should be marked fixed or

Windows Mobile - Connect to Internet

谁说胖子不能爱 提交于 2019-12-13 03:54:12
问题 My application is making call to server at regular intervals. This requires internet connection either using Wi-Fi or GPRS. This works ok when phone is waken (screen light is on). But, as soon as phone lights are off, it makes HttpWebRequest and tried to get Internet connection. Mobile starts connecting to Wi-Fi. But, Application does not wait for establishing connection to Wi-Fi. How can I connect to Wi-Fi or GPRS before making HttpWebRequest? How to specify that I want to connect to Wi-Fi

The type or namespace name 'SqlServer' does not exist in the namespace 'Microsoft.Synchronization.Data'

情到浓时终转凉″ 提交于 2019-12-13 03:54:02
问题 This is a strange problem I'm having, I've downloaded the WebSharingAppDemo sample from Microosfts website but when I try to compile it in Visual Studio 2008 I get the following error: The type or namespace name 'SqlServer' does not exist in the namespace 'Microsoft.Synchronization.Data' When attempting to use the Microsoft.Synchronizaqtion.Data.SqlServer. Any ideas what might be causing this? 回答1: You probably need to add a reference to Microsoft.Synchronization.Data.SqlServer Right-Click