wce

单例模式Singleton

天涯浪子 提交于 2020-08-14 01:49:49
一 概述 单例模式应用广泛,故这里只介绍常见的四种单例运用 二 使用示例 单例模式一: package cn.xair.manager.handler; /** * 单例模式举例 * * @author:wjm * @date:2020/5/26 15:43 */ public class TestSingleton { /** * 单例模式(痴汉式) * 建议直接用痴汉式即可,饿汉式、懒汉式在现在这个内存时代不需要考虑 */ public static final TestSingleton testSingleton = new TestSingleton(); /** * 构造方法私有化 */ private TestSingleton() { } /** * 提供一个公开获取对象的方法 */ public static TestSingleton getInstance() { return testSingleton; } } class Test { public static void main(String[] args) { //使用该单例模式的方法: TestSingleton testSingleton = TestSingleton.getInstance(); } } 单例模式二: package cn.xair.manager.handler;

Upload and download large files - Windows Mobile (Compact Framework) via Web Services (WCF, MTOM, WCE?)

断了今生、忘了曾经 提交于 2019-12-24 01:49:09
问题 I have searched quite a bit and can't seem to find a good stable solution, so any help will be appreciated. Here's the scenario: Windows Mobile device running client app on .NET CF 3.5 (OpenNETCF libraries being used) Web App on .NET 3.5 (Web server running IIS) Developing in VS2008, .NET 3.5 - all the latest I need to use web services or WCF or MTOM to transfer large files to and from the mobile device. (Prefferably chunked). I've found some great articles, but can't seem to get it working

How can I install CF 2.0 on my handheld device, and which version/architecture?

↘锁芯ラ 提交于 2019-12-12 04:13:00
问题 To install CF 2.0 on my handheld device (replacing the existing/unwanted version 3.5), according to this (straight from the horse's mouth), I need to run netcfsetupv2.msi from the following directory: \Program Files\Microsoft.NET\SDK\v2.0\CompactFramework I have one problem with that, though: I have no netcfsetupv2.msi - not there or anywhere else, in fact (although I do have a C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v2.0 folder ). I do see "interesting" files such as