compact-framework

SQL Server CE .sdf merge

纵然是瞬间 提交于 2019-12-11 23:05:41
问题 My application is running on Windows CE 6.0, and it uses a SQL Server CE .sdf file to store user data. The application is running on an industrial device, which is not connected to internet. The only way to update the software is to plug a USB stick inside. As expected, the first release 1.0 of the application needs to update to 1.1 now, the database schema as well. How could I merge the .sdf version 1.0 which is on the device with the latest 1.1 database schema that will be available through

Fast method to rotate image in .NET Compact Framework in C#

最后都变了- 提交于 2019-12-11 20:47:15
问题 Is there a fast way to rotate images in .NET Compact Framework. I've found ways to do 90, 180,270, rotations but would like to be able to rotate images free form in similar speed. 回答1: 90-, 180- or 270-degrees rotations require no calculation at all, only moving some data. On the other hand, free-angle rotations require heavy calculations. So this will never ba as fast as right-angle rotations... 回答2: You can use OpenNetCF's ImageUtil class to do this (it's the "Rotate" method you're looking

Does an ASP.NET Web API app need to be installed into the “real” IIS before a handheld device can access its RESTful methods?

时光怂恿深爱的人放手 提交于 2019-12-11 20:28:21
问题 I am trying to test a client Windows CE / Compact Framework (.NET 3.5) app on handheld devices (Motorola/Symbol 3090 and 3190), but, although a "fake" client attaches and works fine on the desktop, the client app on the desktop fails to connect - it gets a 400 Not Found error when trying to call a RESTful Web API method. This is with the server / Web API app running in Visual Studio, hosted by the built-in / scaled-down version of IIS. Is this to be expected (not connecting)? If not, what

.net Out of Memory exceptions in Windows Mobile - how to overcome this problem?

試著忘記壹切 提交于 2019-12-11 19:08:01
问题 I am currently writing a small application in Windows Mobile using CF.NET. The application is very similar in its behaviour to an e-mail application i.e. I am using POP3 to download messages and attachments from my mail-server account to store on the storage-card for further processing with a MIME-tool. My problem is downloading large attachments because at a certain point I get an OutOfMemory-exception. I found out some interesting things about this by reading the following question and

Compact Framework C# loading DLL dynamically

你离开我真会死。 提交于 2019-12-11 18:57:33
问题 instead of including a dll file in my project as a reference, I need to dynamically use some classes from specific namespaces in that dll file. I've done some research about the topic and found the way to do that by using Activator, InvokeMember and so on. But, i have a problem with writing proper code. I need to do something like: A a = new A(); B[] b = a.method(); B b0 = b[0]; where A and B are type of classes from namespace in dynamically loaded dll file. I'm trying to adjust that piece of

SQL Server CE's DDL parser is very picky but secretive about what it is finding fault with

谁都会走 提交于 2019-12-11 18:54:52
问题 I keep getting "there was an error parsing the query" no matter what I try with my DDL. So I need an expert in the SQL-Server-CE flavor of SQL to tell me which of the following is the preferred method (or something else, quite likely). Note that I'm not worried about "SQL injection" with these string format elements: 1) string ddl = string.Format("ALTER TABLE {0} ADD salvationID nvarchar(19)", tablename); ddl = string.Format("UPDATE {0} SET redemptionID = ''", tablename); 2) string ddl =

ARGOX Mobile Computer SDK

让人想犯罪 __ 提交于 2019-12-11 18:18:05
问题 I search for Argox mobile SDK for .NET C#. I was downlod SDK from http://www.argox.com/content2011.php?sno=0000033&P_ID=53 but it not working, couse it's for c++ I think... ;/ 回答1: I just checked there web site and the internet, there should be some .NET examples installed with the SDK: http://webcache.googleusercontent.com/search?q=cache:zPo5BIItBLEJ:www.argox.com/file.php%3FA_ID%3D213+&cd=3&hl=en&ct=clnk I did not finish to download and install the SDK. If it really does only support C/C++

Can I read stored SMS entries on my Windows Mobile phone from a .NET CF application?

倖福魔咒の 提交于 2019-12-11 18:07:19
问题 Looking at writing an application using the .NET Compact framework to extract SMS messages on my Windows Mobile phone. I basically want to be able to export the stored message in the inbox so that they could be imported to Excel or some other program for formatting and storage. In my personal case, I have a Treo 700w. I've written some small apps under the Compact Framework before, but I can't find anything referencing where the text messages are stored. I have some 7000 messages stored in my

How does one designate the root of a handheld device?

一曲冷凌霜 提交于 2019-12-11 16:39:07
问题 I need to recursively search a handheld device for any files anywhere on the device that follow a certain pattern (such as " Platypus .XML"). To pass the root of the device to my directory traversal method, do I pass "\" or something else? In Windows Explorer, the device is "J:\" - but I know that can't work, because it won't be mapped to J for everyone. The device's full name in Windows Explorer is something like: Duckbill (\\LEXINGTON\dev\Xmen\Miguel\Installs) (J:) ...but similarly, each

Slow Update/insert into SQL Server CE using LinqToDatasets

拥有回忆 提交于 2019-12-11 16:04:45
问题 I have a mobile app that is using LinqToDatasets to update/insert into a SQL Server CE 3.5 File. My Code looks like this: // All the MyClass Updates MyTableAdapter myTableAdapter = new MyTableAdapter(); foreach (MyClassToInsert myClass in updates.MyClassChanges) { // Update the row if it is already there int result = myTableAdapter.Update(myClass.FirstColumn, myClass.SecondColumn, myClass.FirstColumn); // If the row was not there then insert it. if (result == 0) { myTableAdapter.Insert