compact-framework

NetCFSvcUtil “Error: An error occurred in the tool.”

半世苍凉 提交于 2019-12-18 13:25:28
问题 I am trying to generate a WCF proxy client code for a Windows mobile application that uses basicHttpBinding and I'm continuously receiving the follow error: Error: An error occurred in the tool. Error: Error in the application I was able to generate the proxy before but I don't know why suddenly this happens. I have read the Sameh Samir's post but the service I use doesn't use any Message Contracts created by me (I've used LINQ to SQL ORD) and the WCFTestClient can connect to the service and

wince 6 smart device Could not establish secure channel for SSL / TLS error

不打扰是莪最后的温柔 提交于 2019-12-18 09:17:46
问题 I have a web service which i need to access through https. We have a workbout pro 4 with win ce 6.0 running on it. When we were developing our app we had tested it through http. wihtout any problem. When we went live and needed access to https based server we have received the error stated on subject field under VS 2008 Smart Device Project. On the device we receive an error "could not display..." . We have tried to import the standard certificate issued by global si. We still have no success

How can I establish a secure channel for SSL/TLS from a handheld device?

不问归期 提交于 2019-12-18 05:18:09
问题 I am trying to call a REST method from a handheld device (Windows CE / Compact framework) with this code: public static HttpWebRequest SendHTTPRequestNoCredentials(string uri, HttpMethods method, string data, string contentType) { ExceptionLoggingService.Instance.WriteLog("Reached fileXferREST.SendHTTPRequestNoCredentials"); WebRequest request = null; try { request = WebRequest.Create(uri); request.Method = Enum.ToObject(typeof(HttpMethods), method).ToString(); request.ContentType =

How can I shutdown a Windows Mobile device programatically

我只是一个虾纸丫 提交于 2019-12-18 05:13:38
问题 I would like to programatically shutdown a Windows Mobile device using Compact framework 2.0, Windows mobile 5.0 SDK. Regards, 回答1: It probably not a great idea to do it from your app - the device has a power button for a reason and shutting down the app can cause user confusion and frustration. If you must do it, and you are using Windows Mobile 5.0 or later, you can P/Invoke ExitWindowsEx like this: [Flags] public enum ExitFlags { Reboot = 0x02, PowerOff = 0x08 } [DllImport("coredll")]

ETA on Smart Device Projects for Visual Studio 2010

孤人 提交于 2019-12-18 04:17:19
问题 I really want to upgrade to Visual Studio 2010. But since I do a lot of development for the Pocket PC version of Windows Mobile I cannot. (I develop for a Symbol device that does not support Windows Phone 7, so that is not a option.) Does any one know any kind of time frame of when Microsoft plans to add support for Smart Device Projects into Visual Studio 2010? Update: Since this is looking less and less likely without intervention from the users, Please go here and vote for this feature.

Why does short-circuiting not prevent MissingMethodException related to unreachable branch of logical AND (&&)?

北城余情 提交于 2019-12-18 03:05:15
问题 While performing a check if there's a camera present and enabled on my windows mobile unit I encountered something I don't understand. The code looks like this: public static bool CameraP(){ return Microsoft.WindowsMobile.Status.SystemState.CameraPresent; } public static bool CameraE() { return Microsoft.WindowsMobile.Status.SystemState.CameraEnabled; } public static bool CameraPresent1() { return Microsoft.WindowsMobile.Status.SystemState.CameraPresent && Microsoft.WindowsMobile.Status

How to programmatically install a font

拈花ヽ惹草 提交于 2019-12-17 20:52:41
问题 I would like to install a specific font on my program load and use that font in rendering text of the program. How can I programmatically install a font from .NET CF on WinCE 6. 回答1: This blog entry shows how to enumerate and add Fonts in Windows CE using native code. For managed code, this will work: internal class FontHelper { private delegate int EnumFontFamProc(IntPtr lpelf, IntPtr lpntm, uint FontType, IntPtr lParam); private List<string> m_fonts = new List<string>(); public FontHelper()

What is the best mechanism for communicating cross-process in Windows CE?

◇◆丶佛笑我妖孽 提交于 2019-12-17 20:29:59
问题 I need to broadcast an event that can be picked up by any application running on a Windows CE 5 device. Haven't done this before so i'd be interested in knowing what techniques people would suggest to see if there is anything i've not considered. All of the applications that need to receive this event are .NET Compact Framework based so "managed-only" solutions can be considered. 回答1: I swear I've answered this somewhere - here, newsgroups, blog, something - but I can't find it, so here it is

XML vs Binary performance for Serialization/Deserialization

◇◆丶佛笑我妖孽 提交于 2019-12-17 19:44:16
问题 I'm working on a compact framework application and need to boost performance. The app currently works offline by serializing objects to XML and storing them in a database. Using a profiling tool I could see this was quite a big overhead, slowing the app. I thought if I switched to a binary serialization the performance would increase, but because this is not supported in the compact framework I looked at protobuf-net. The serialization seems quicker, but deserialization much slower and the

Do you know any run-time differences between Compact and Full Framework code?

亡梦爱人 提交于 2019-12-17 18:28:26
问题 There are a number of run-time differences in compatible code between these two versions of .NET. Here is a list of differences so far: Graphics.DrawRectangle - differs by 1 pixel Graphics.DrawString - Loses the line wrap if used with a StringFormat with both StringAlignments set to Center. Most file operations - compact framework needs a full path The status of a socket after BeginAccept (In WinCE 5 at least) you cannot use a socket to send data synchronously with a timeout (without is okay