Hello, .NET Compact Framework 2.0

xiaoxiao2021-03-06  16

Hello, .NET Compact Framework 2.0

With the scream of the hard disk, I started writing this blog. This can't blame my old machine, because he has just experienced a series of torture, downloading Visual Studio 2005 Beta2 in February, 3.3g :) at the Visual Studio 2005, 3.3g :) At the same time, WINDOWS Server 2003 and Windows XP.

The words retired, I am so "abuse" my own machine, because Microsoft's VS.NET 2005 is coming, and this includes many good things I look forward to long time. Two of them have to be mentioned: .NET Compact Framework 2.0 and SQL Server 2005 Moible Edition. Although .NET CF 1.0 has recently gained Jolt awards, we can't deny that he is not a mature Framework, in order to save space, and use many useful, useless functions are excluded. Even many features supported by Windows CEs have not appeared in .NET CF 1.0. This also stimulates the huge enthusiasm of the .NET CF community, producing the excellent open source library such as OpennetCF.

Microsoft seems to be aware of this problem, so promise to join many types and functions that are very useful for developers in .NET CF 2.0. I also hope to introduce these new features to you in the first time. I hope to write this blog into a series, use some practical examples to explain the new features of .NET CF 2.0. The following examples are written in Visual Studio.net 2005 Beta 2 Feb CTP below Windows Server 2003. If there is a different place with future official versions, please pay attention to the difference.

Ok, enter the formal topic, let's press 索, look at what new features from the .NET CF 2.0 documentation, then enjoy new fun, or poke in the new lie :) Document introduction .NET CF 2.0 has new features and performance improvements in JIT compilation, debris collection, XML Web Service and data access.

Application DomainS supports uninstalling an application domain.

In terms of encryption, it is finally supported by the hosted encryption method and the X509 digital signature.

The GetChanges method in DataSet is supported, and some classes have been added, we will introduce you in SQL Mobile 2005.

Exceptions, improvements in SelectIndexchanged, ValueChanged events in ComboBox, Listbox, and TreeView.

Assemblies, Friend Assemblies are supported by CF 2.0.

Online, support NTLM certification and IPv6 network protocols.

Now MSMQ is finally supported, which is the most stable asynchronous message transmission mechanism in Microsoft Environment, which can support interaction between messages between different devices. I hope to write an example here.

String Operation, Substring method If the start position is larger than the length of the string, it will throw an exception of argumentException. Such as string.empty.substring (0, 1);

The thread finally supports the BeginInvoke and EndInvoke method, and you can use parameters when INVOKE.

XML supports XMLSerializer, XPath and Schema, although it is a simple description, but how many programmers have a tearful tear of the programmer. There is basically no way to encounter more than 1M in .NET CF 1.0. The XPath of CF 2.0 is finally allowed to "turn over the program".

There are also some new features, such as supporting separate compilation and commissioning, that is, development .NET CF program does not have to rely on the environment of VS.NET. Another advantage is that you can create an automated compilation environment and do Daliy Build. The assembly can be set by the profile running in the CF 1.0 or the CF 2.0 environment. However, it is said that the name of the profile is "xxx.exe.config", if this name has been used by the developer's configuration file, it is really difficult. In terms of new forms and new controls, according to I know, including calendar controls, DatePicker (can't help but, CF 1.0 does not support!), The Richink control in the host environment. There will be some new controls, let us wait.

The most important thing is often on the final setting. Everyone thinks what is the most in CF 1.0? Yes, it is COM interoperability! At this point, how many heroes have been? I want to visit Pocket Access, I want to call the Media Player control, how can I access POOM? Of course, there is also a really good Han crossing this obstacle, such as calling COM with ATL, then call Native DLL through P / Invoke to implement access COM. But this is too ...

Now CF 2.0 is finally supported .NET CF access COM components, but COM access .NET is not implemented in this release. You can bind late binding through the IDispatch interface, or early binding. It seems to go to the evil COM knowledge.

Ok, my hard drive finally didn't ring. I am also ready to try to write a Hello, Wolf. This time I didn't talk about the new features of SQL Mobile 2005, in fact, this is also a fun topic, and then say :)

转载请注明原文地址:https://www.9cbs.com/read-48400.html

New Post(0)