compact-framework

Compact Framework - OpenNetCf.Net FTP Samples?

删除回忆录丶 提交于 2019-12-09 04:55:17
问题 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. 回答1: I don't like the classes in the OpenNETCF.Net.FTP namespace (the ones in the Smart Device Framework).

How do you get the current directory in compact framework?

陌路散爱 提交于 2019-12-09 02:29:43
问题 How do you get the current directory where your app is running? 回答1: You could try this: using System.IO; using System.Reflection; namespace Utilities { static public class DirectoryHelper { static public string GetCurrentDirectory () { return Path.GetDirectoryName (Assembly.GetExecutingAssembly ().GetName ().CodeBase); } } } 回答2: Try this: Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase); 回答3: Public Shared Sub WriteDBStatus(ByVal strString As String) Try Dim FILE

IoC/DI Container that supports Compact Framework

主宰稳场 提交于 2019-12-08 18:01:12
问题 Is their any IoC controllers available that will work on .NET Compact Framework? 回答1: http://code.google.com/p/compactcontainer/ http://ninject.org/ 回答2: The OpenNETCF IoC framework supports the Compact Framework (as a first-class citizen), the full desktop framework, Mono for Android, MonoTouch and Windows Phone. It's also still active, with updates and fixes still being applied which can't be said about all of the other "CF supporting" frameworks. 回答3: Ninject is a dependency injection

Problems using ImageHelper to resize images on OpenNetCF with HTC T3333

两盒软妹~` 提交于 2019-12-08 13:40:51
问题 I use the class ImageHelper who was quoted in the article of Chris Tacke to resize large images on Compact Framework, using OpenNetCF.Drawing namespace. In many devices that have Windows Mobile 6.5 version Embebbed the class worked perfectly. However in some devices with the Windows Mobile version 6.1 (robust Honeywell equipment) and HTC T3333 (Touch2) throws an exception "0x887b0005". Is there any limitation on the use of this device? There is an alternative to solve this problem? 回答1:

Minimal system requirements for .NET Compact Framework 3.5

廉价感情. 提交于 2019-12-08 10:42:51
问题 I have hardware with Microsoft Embedded Windows CE 4.1 (CE .NET) / CPU Intel XScale PXA250 / Memory 32 MB RAM/32 MB ROM. Is there possible to run .NET CF 3.5 on hardware this type? Or may be only .NET CF 2.0? 回答1: it seems that there is a version for Windows CE 4.2, it may work also on 4.1 because there are no major differences in the kernel between those two releases: http://support.microsoft.com/kb/947559 It's not granted that it could run on any Windows CE 4.2 device. The .NET CF requires

How can I read a string from OpenNETCF.IO.Ports.SerialPort?

感情迁移 提交于 2019-12-08 07:53:07
问题 I write commands to a belt printer using OpenNETCF.IO.Ports.SerialPort this way: public static bool SendCommandToPrinter(string cmd) { bool success; // init'd to false by default try { SerialPort serialPort = new SerialPort(); serialPort.BaudRate = 19200; serialPort.Handshake = Handshake.XOnXOff; serialPort.Open(); serialPort.Write(cmd); serialPort.Close(); success = true; } catch // may not need a try/catch block, as success defaults to false { success = false; } return success; } ...now I

Windows Mobile and VS2008, can't connect to device

断了今生、忘了曾经 提交于 2019-12-08 07:40:48
问题 I just got myself a new toy, a phone with Windows Mobile 6. I'm trying to write a simple "Hello World" app in VS2008 (C#) and I can't connect to the device. It's connected via ActiveSync (via USB), I can browse the file system, but for some reason when I try to build the app and deploy it to the device, it says "Connect to device failed." I installed the Windows Mobile 6 Professional SDK as well as the .net Compact Framework 3.5 runtime on the device and all that worked fine. I can run the

Directshow in C# for windows mobile- strategy?

不问归期 提交于 2019-12-08 07:31:11
问题 I'm trying to figure out how to add some directshow capabilities to a C# application (.net cf 3.5 running on mobile 6 and up), and I'm having a hard time figuring out how to bridge the gap between using unmanaged c++ class(es) in managed C#. I've already written the functionality I need in C++: Basically, I have a manager class that uses COM to tap into the needed directshow functionality. Quick Disclaimer: I'm new to COM, and I'm VERY new to integrating C++ with C#. I'm really hoping that

Power On/Off GPRS on windows mobile

此生再无相见时 提交于 2019-12-08 06:35:33
问题 i'm looking for a way to power on or off the GPRS adapter programatically. 回答1: If you're already using the Smart Device Framework, the ability is already there in the API, as you can see in this blog entry (the blog is for WiFi but the phone radio and bluetooth work the same way). THe other option is to call ChangeRadioState in ossvcs.dll yourself (that's what the SDF is doing). 来源: https://stackoverflow.com/questions/1164057/power-on-off-gprs-on-windows-mobile

Graphs in .NET CF [closed]

匆匆过客 提交于 2019-12-08 06:35:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm looking for a decent free control, library, or tutorial that allow graphing on .NET CF... I'm currently using v2.0 but can probably upgrade to 3.5. I will also want to be able to save the graph as an image. 回答1: Two years ago i did nearly the same search and found several one, but nothing really excited me.