compact-framework2.0

Mobile Compact Framework 2.0 Install unsuccessful from Win7 generated from VS2008

天涯浪子 提交于 2020-01-25 21:54:07
问题 I recently upgraded a VS2005 solution for a WinMobile5 app to VS2008. The solution also contains a CAB builder project plus an MSI Desktop Installer project. A custom DLL from the installer takes care of deploying the app plus supporting CABs, like Compact Framework 2.0, scanner libraries, etc to the actual device. I used this article as a guide for MSI installation: http://msdn.microsoft.com/en-us/library/aa446504.aspx Problem is, the CF2 CAB won't install successfully to a WM5 device from

Which operation cannot be performed after the request has been submitted?

不问归期 提交于 2019-12-14 03:28:56
问题 I'm successfully passing data between a handheld device (Compacted Framework/Windows CE) and a modern (not "modern" as in Windows 8, but as in 21st Century) server app (Web API). However, after the (successful) passing of data, the client fails with the err msg, " This operation cannot be performed after the request has been submitted " Which operation is it complaining about? Here's my client code: public static HttpWebResponse SendXMLFile(string xmlFilepath, string uri) { StringBuilder sb =

JSON serializer for .NET CompactFramework 2.0

限于喜欢 提交于 2019-12-13 18:04:19
问题 I need to Serialize and De-serialize Custom Objects under .NET Compact Framework 2.0. I have gone through JSON.NET 3.5 but it need .NET Compact Framework 3.5. I am restricted to not to upgrade from 2.0 to 3.5. When I am trying with version JSON.Net 2.0, Serialize and Deserialize operations are hanging up. ---Serialize----- List<string> strMessage = (JavaScriptConvert.DeserializeObject(results, typeof(List<string>)) as List<string>); -----Deserialize---- List<object> paramObject = new List

System.Threading.Timer Not Starting?

你说的曾经没有我的故事 提交于 2019-12-10 14:14:15
问题 I'm using C# with Compact Framework 2, SP2. The device's OS was set up to start up with my application, let's call the application "Loader.exe." Loader is simply this: a single, plain form that shows status messages throughout loading, if necessary (layman's terms for there being an error and an exception message, or "starting application [xyz]"), and a state machine running in the background while a basic full-screen form is shown. So Loader's form's constructor has the following at the very

What uri pattern do I need to communicate with my PC from my handheld device?

怎甘沉沦 提交于 2019-12-04 06:19:32
问题 As I was reminded here, I need to probably use "ppp_peer" to programmatically connect from my Compact Framework app to my Web API app running on my PC. I have tried this (replacing an IPAddress with "ppp_peer"): string uri = string.Format("http://ppp_peer:28642/api/FileTransfer/GetHHSetupUpdate?serialNum={0}&clientVersion={1}", serNum, clientVer); ...but I get, " NullReferenceException " in "Main" (prior to this I got "Unable to Connect to the Remote Server"). I have a breakpoint in the

Attach button to column datagrid in C# Compact Framework .Net 2.0

喜夏-厌秋 提交于 2019-12-01 07:55:28
I have a datagrid which has 4 columns, the first 3 are data and the last one needs to have a button in it to allow for the row to be deleted. I have searched for a good 2 hours now and haven't found any way to do this in the C# Compact Framework for .Net 2.0. Any advice would be great. To clarify, I am looking for an answer as to whether buttons can be added as part of a column in a DataGrid in C# Compact Framework .Net 2.0. If it is possible examples would be great and pointers to resources on the specifics of how the code works even better. DataGridViewButtonColumn does not work in CF 2.0

Attach button to column datagrid in C# Compact Framework .Net 2.0

泄露秘密 提交于 2019-12-01 05:40:16
问题 I have a datagrid which has 4 columns, the first 3 are data and the last one needs to have a button in it to allow for the row to be deleted. I have searched for a good 2 hours now and haven't found any way to do this in the C# Compact Framework for .Net 2.0. Any advice would be great. To clarify, I am looking for an answer as to whether buttons can be added as part of a column in a DataGrid in C# Compact Framework .Net 2.0. If it is possible examples would be great and pointers to resources

What need I do to get this code to work in a Portable Class Library?

寵の児 提交于 2019-11-29 16:26:50
I'm wondering if the Portable Class Library is even more restricted in functionality than the Compact Framework. I'm trying to port a CF/Windows CE app (runs on a handheld device) to a Xamarin solution that will target Android, iOS, Windows Phone, and perhaps other things. One of the problems I run into, though, is that this legacy code (which works under CF): public static List<string> GetXMLFiles(string fileType, string startingDir) { const string EXTENSION = ".XML"; string dirName = startingDir; // call it like so: GetXMLFiles("ABC", "\\"); <= I think the double-whack is what I need for

Change file LastWriteDate in Compact Framework

守給你的承諾、 提交于 2019-11-29 15:37:46
FileSystemInfo.LastWriteTime property is readonly in CF. Is there an alternative way to change that date? P/Invoke SetFileTime . EDIT Something along these lines (warning: untested) [DllImport("coredll.dll")] private static extern bool SetFileTime(string path, ref long creationTime, ref long lastAccessTime, ref long lastWriteTime); public void SetFileTimes(string path, DateTime time) { var ft = time.ToFileTime(); SetFileTime(path, ref ft, ref ft, ref ft); } AlainD Here is a fuller implementation, adapted from the answer ctacke provides above and this StackOverflow question . I hope this proves

What need I do to get this code to work in a Portable Class Library?

橙三吉。 提交于 2019-11-28 11:00:10
问题 I'm wondering if the Portable Class Library is even more restricted in functionality than the Compact Framework. I'm trying to port a CF/Windows CE app (runs on a handheld device) to a Xamarin solution that will target Android, iOS, Windows Phone, and perhaps other things. One of the problems I run into, though, is that this legacy code (which works under CF): public static List<string> GetXMLFiles(string fileType, string startingDir) { const string EXTENSION = ".XML"; string dirName =