compact-framework

Compact Framework - OpenNetCf.Net FTP Samples?

前提是你 提交于 2019-12-03 04:41:23
I am trying to get the OpenNetCF.Net FTP Components working with my PDA application. I am struggling to get it doing any more than connecting to the server and wondered if anyone knew of any sample code I could use to learn how to use it with? I need to be able to download and upload files, as well as determining the download size of any files that I wish to download. Thanks in advance. I don't like the classes in the OpenNETCF.Net.FTP namespace (the ones in the Smart Device Framework). They're based on streams just like the full framework version (which is why we did them that way) but I find

How do I include the .NET Compact Framework as part of a Smart Device CAB Project?

时光总嘲笑我的痴心妄想 提交于 2019-12-03 04:01:48
I'm working on a VS2008 Smart Device app that includes a Smart Device CAB Project for deployment. I was surprised to find out that this installer project doesn't install the .NET Compact Framework if necessary. Can it be made to do so? It can be done with some work. See Automatically Install Multiple CAB Files to a Windows Mobile/Pocket PC Device from codeproject.com There is no way to get a CAB Project to install and run another CAB file - it's a limitation of the CAB installer system (wceload to be exact). One way to achieve it is to include the CF CAB and then create a custom setup DLL that

Best way to manage network state in Windows Mobile

家住魔仙堡 提交于 2019-12-03 03:58:51
问题 I have a .NET Compact Framework 3.5 program that is used as a 'Occasionally Connected' line of business (LOB) application. If it can see an online webservice, it will use that for data access, but if network connection is lost it will use a local cache. What is the best way to handle all of the connection options and state changes? OpenNetCF's ConnectionManager class? Microsoft.WindowsBile.State.SystemState? API calls? How do you get it to understand the difference between WiFi, Cradle, and

GPS library for .NET compact framework

怎甘沉沦 提交于 2019-12-03 03:56:54
问题 I'm thinking of writing simple application for Windows Mobile devices, where user could simply enter destination coordinates, and the app would calculate distance and show direction to the destination. But I haven't found any Free , preferably Open Source library with simple API to work with GPS . 回答1: I recently used open source SharpGPS. It's supposed to support more devices than the example in the SDK, but both solutions work on all my hardware. SharpGPS did make it easier to access more

UI Components for Windows Mobile Applications (.NET Compact Framework)

我是研究僧i 提交于 2019-12-03 03:54:59
问题 Applications which run on mobile devices have special user interface requirements. I think Apple did a great job introducing innovative controls on the iPhone/iPod touch platform. Now, I have to design an application for the Windows Mobile platform using the .NET Compact Framework (Visual Studio 2008). I wonder if there are some commercial or open source UI control sets available which are similar to the iPhone / iPod touch UI elements: Scrolling panels based on gestures Instead of a

Compact Framework best practices: Building a GUI

混江龙づ霸主 提交于 2019-12-03 03:49:59
I'm maintaining a Windows CE app built with the .NET Framework that has about 45 forms. There are 5 'sections' which lead to the function you want. The application is 100% full screen and it is important that it can't be minimized. Since there are so many forms, it's difficult to keep track of which form should be displayed after one is closed. For this, I'm setting the form owner property before showing it, and showing the owner when closing it. I've also been advised that it is best to instantiate all forms when the application loads, and not dispose them to save processing time. I'm not

Asynchronous WebRequest with POST-parameters in .NET Compact Framework

人盡茶涼 提交于 2019-12-03 03:11:00
I'm trying to do an asynchronous HTTP(S) POST on .NET Compact Framework and I can't seem to get it working. Here's what I'm doing: private void sendRequest(string url, string method, string postdata) { WebRequest rqst = HttpWebRequest.Create(url); CredentialCache creds = new CredentialCache(); creds.Add(new Uri(url), "Basic", new NetworkCredential(this.Uname, this.Pwd)); rqst.Credentials = creds; rqst.Method = method; if (!String.IsNullOrEmpty(postdata)) { rqst.ContentType = "application/xml"; byte[] byteData = UTF8Encoding.UTF8.GetBytes(postdata); rqst.ContentLength = byteData.Length; using

.NET Compact Framework with Visual Studio 2010?

随声附和 提交于 2019-12-03 02:57:24
NET Compact Framework with Visual Studio 2010? I have Visual Studio 2003, but i want change to one IDE. rcx Joel Fjordén has a blog post on how to Open and Build .NET Compact Framework Projects in Visual Studio 2010. In short, his approach involves editing the project file and copying the .NET Compact Framework v3.5 targets files to the .NET v4 directory. As alluded to earlier, Microsoft web pages note the following: Because Visual Studio 2010 does not support mobile application development for Windows Phone prior to Windows Phone OS 7.0, you cannot use the following features: .NET Compact

Disable compiler optimisation for a specific function or block of code (C#)

我怕爱的太早我们不能终老 提交于 2019-12-03 01:23:35
The compiler does a great job of optimising for RELEASE builds, but occasionally it can be useful to ensure that optimisation is turned off for a local function (but not the entire project by unticking Project Options > Optimize code ). In C++ this is achieved using the following (with the #pragma normally commented out): #pragma optimize( "", off ) // Some code such as a function (but not the whole project) #pragma optimize( "", on ) Is there an equivalent in C#? UPDATE Several excellent answers suggest decorating the method with MethodImplOptions.NoOptimization . This was implemented in .NET

Get Host-IPs of wireless network

為{幸葍}努か 提交于 2019-12-03 01:02:20
问题 Possible Duplicate: Get all IP-Hosts in Lan from mobile device How can I get programmaticaly all the hosts in a wireless network? I know the wlan I'm working in and I am connected to it. Now I want to show a list of the hosts (or at least their IP-Addresses). How can I accomplish this, and are there special points if I work on windows mobile with compact framework and want to do that? 回答1: There are lots of ways. For example: ARP: http://msdn.microsoft.com/en-us/library/aa366358%28VS.85%29