May 1st, May 1
Mood
2002.05.01
Article Type: Overview
Difficult level: 2/9
Version: 1.48
May 1 is the Labor Day, you can take a vacation, so there is time to do something you usually want to do, such as the one I narrate.
Microsoft has released Microsoft Smart Device Extensions Beta 1 (SDE) for approximately 3 weeks, and SDE has some nice features, but more developers will pay attention to two aspects: function and .NET Compact Framework.
Function It provides a solution to develop embedded devices to develop embedded devices, making embedded developers have additional development tools and platforms outside Microsoft Embedded Visual Tools 3.0, while developing more other areas development Personnel smoothed and economically to the use of their own applications. SDE is integrated in Visual Studio.net (VS.NET), then foreseeable future Embedded Visual Tools development is some confusing, SDE Beta only supports Visual Basic.NET (VB.NET) and Visual C # ( C #) Create Smart Device Project, as for C users currently not use SDE features in VS.NET. It seems that Microsoft wants to use the DOTNET as a brand like Windows, MSN, deeply in your mind. In the eyes of Gates, DOTNET is a technical platform with a lot of Value. DotNET must be a lot of money in Steve Ballmer's mind. DotNET wants you to see, listen, touch, enjoy it; it will not be all in time, everything goes, it is. (The two sentences are purely Du But Copyright HAHA)
The second is .NET Compact Framework, DotNet out of the world, there is the concept of the .NET Compact Framework, I believe that SDE makes it really make a reality, I have always thought that .NET Compact Framework is more important than SDE itself, it belongs to a concept This will allow more other vendors to produce their own platform in the future, as long as it meets the specification of .NET Compact Framework and Microsoft some certification. It is worth mentioning that the size of the .NET Compact Framework, according to the SDE document: The Common Language Runtime for the .NET Compact Framework Is Approximately 12 Percent The size of the full full .NET Framework Runtime. Now DOTNET's runtime is approximately 22M (DotNetfx.exe), 12% of 22M, should be said very small. In the following, the last packaged installation file is about 15K, but this does not include any runtime file, which is discovered in the CompactFrameworksdk / V1.0.3300 / Windows CE / WCE400 directory. Netcf.all.wce4.x86.cab It is about 2M, if you add the sales library for SQL Server CE and VS.NET installation support, I think the last .NET Compact Framework size is around 3 to 5m. And the results I guess before I guess: Small than the Java running library, the running library of VB is large. 12%, can see an indicator that is constantly trying to reach :)
As for the difference between .NET Compact Framework and Full .NET Framework, I column according to the SDE documentation, because the beta version may vary in the future. (For details, please see the document does not guarantee personal understanding incorlation) Comparison characteristics Description The same point Common Language Runtime
It is "Managed Code" execution, the same JIT, garbage collection mechanism, fully supports CLS
Assemblies and file formats
All use Assemblies, there are the same PE format and MSIL, but binary under two platforms is not compatible, followed by the storage medium requirements of each target platform after compiling (Strong Binding Rules.), The execution file under an Framework cannot come Under a framework, you need to recompile Multiple Language Support
Cross-language interoperability is built-in and is currently supported by Visual C # and Visual Basic .NET. The COMMON TYPE SYSTEM is the same, and both support from the built-in original type for inheritance, expand.
Threading Model
Both are the same thread model, support multithreading. Standards Support core technology implementation follows ECMA standards
Different points Application Domains
Do not support Full Framework to load Assemblies to the "Domain-Neutral" code area to be used by other Application Domains
ASP.NET
No support for ASP.NET, use ASP.NET Mobile Web Controls for Mobile Devices
Classes
Support a subset of Full Framework and have the same name. However, the specific number has not yet available for documentation.
Com Interop and Callback Functions
Only the original DLL's interaction call (P / INVOKE) is supported under the system platform, and COM Interop is not supported. It means that you cannot interact directly with COM. However, if the original DLL calls COM, it changes to COM interaction.
Data
System.Data.Oledb
Support ADO.NET and include a subset of SQL Server CE
Data Types
An incorrect result is returned for a critical (extremely or very small) division.
Support Math.Round (Double A) but does not support two parameters of Round
Delegates
Not supported asynchronous delegates
Deploying Applications
Simple copy way. Use the Cable package and Infrared Port to transfer deployment with the corresponding target platform.
Exception Description Strings
The .NET Compact Framework Provides Exception Strings As a Setup Option for Conserving Space on The Device.
Globalization
Support Globalization, but relying on the target operating system
INPUT / OUTPUT (I / O)
Because of Difference in Device Operating Systems, There Are Constraints And Restrictions on the I / O Model.
File Change Notifications is not supported.
Memory
Optimize and design for Battery-Powered Systems.
Networking
Unique Infrared Data Association (Irda) Classes
HTTP requests can be handled with it and Web Listening Classes.
Performance Testing
Does not support Code Profiling and Perfmon.exe, Performance Tools for the .NET Compact Framework specific purpose has begun to develop
REFLECTION
You can shift up to 64 bits using the opcodes.shl field. Any larger specification is rest to 64.
Security
There Are Several Important Security Differences and Considances.
Serialization
BinaryFormatter or SOAPFormatter is not supported for serialization. However, it is supported to use SOAP serial transfer object data in XML Web Services.
String manipulations, Regular Expressions
You can use System.Text.RegularExpressions.dll but the application is still binary incompatible, and Different Framework needs to be recompiled.
Windows Forms and Graphics
This part is specifically designed, and the Full Framework is somewhat different.
There is a specific instruction in the SDE installation file and is listed.
Xml
Only SCHEMA verification and XPath query supported by DOM does not support XML documents
There is currently no specific list and corresponding description, which can be clarified that the class library for Infrared and SQL Server CE is new, and there is not yet.
Microsoft's Beta1 software is a famous "toy", but the recent stability is good. About SDE is still still interesting stuff, I will explain some, then we will see an example:
1. SDE does not support Win98, WinMe, the lowest is Windows 2000 Pro SP2.
2. The vs.net after RTM5 can be, if there is no PocketPC machine, then install ActiveSync 3.5
3. Memory a large amount of memory, Window2000 is more than 256M, XP is at 256M 128M additional simulator needs to add 64M
4. Installation method is very quirky. If you have the SDE of the PDC version, even if you have uninstall, you don't challenge this rule, because the challenger finally formats the hard drive, and even the operating system is reloaded.
5. Bad is installed, because SDE will overwrite a number of files in Full Framework, there is currently no protection measures, which means if you uninstall SDE, then vs.net will be destroyed, you need uninstall vs.net to reinstall VS.NET, current Microsoft uses the way in advance, you agree to this rule to install SDE
6. After installation, your toolbar of VS.NET may be disordered, don't be afraid. Turn off the vs.net and then start VS.NET. In addition, you can't see the help document of SDE. You need to set it once according to the readme document, then restart vs.net once, if the toolbar is started and prompts to install the new help file, then don't be afraid , Restart again vs.net
7. Do not use Emulator without the PocketPC machine, then pay attention to three points, 1: If your memory or CPU is not big enough, there is enough patience, wait for the beautiful color screen, start I always thought the installation failed. 2: Create a Microsoft Loopback Adapter network connection according to the document, if you are not available in the LAN, Emulator seems to check the network connection, trying to build a TCP port, the machine, the machine is best specified Fixed IP. The third is: the machine has a serial port or parallel port, otherwise the emulator can start, but when the results will fail, it means that the results are not seen. Ok, start an example to test it, very embarrassed to have a hand, first is entered into frist, this is not the first time, I will miss the BOSS to BOSE, the result is slightly different :)
There is currently only C # and VB.NET with this option, then select a Windows application (Microsoft "is SDE strength)
If you are familiar with WinForm's programming, then almost no difference is that the size of Form is limited. So you see some different arrangements:
After the compilation passed, it is the most exciting moment. Now you have to deploy your Project to the PocketPC machine or PocketPC's Emulator, if you use Emulator, you can choose to choose Tools-> Options-> Device Extensions-> devices Then select Transport's Configure option to see the following dialog box, make sure you have an idle port, preferably there is a serial port that can be used.
Then close the window, then select Connection, which is pre-connected once. It is often OK. The first connected process is painful. You can see the status bar under the vs.net, there will be The very small word indicates that it is building a connection, waiting for a long time, only to see Devices Ready, you can get a lot of breath, pay attention to this small word almost flashed, restore the status bar of VS.NET. If it is failed, it is worse, it will not give any reminder or failure. I started to ignore the serial port. In order to connect for nearly two hours, I'm close to Uninstall, think about Uninstall vs.net, but I wish you good luck first.
The results are like this, and Chinese do not support Chinese (may be in the table, depending on the OS), I have changed the label.
SDE still brought us many exciting information and stuff. I am hard to understand that I will discard Full Framework to program in this limited environment. After practical, I still have many different characteristics and experiences. Of course, if there is a PocketPC machine, it is better, and it feels more real. Any embedded developers can get some and previously different development experiences. In addition, it is necessary to clarify that any Full Framework developers don't simply think that there is SDE, then embedded development is extremely simple, only use will The program can run it again. Learn the difference between the most smooth transplant (of course if you have such an application or need) is still a challenge for each developer. However, it is found that you need to spend a lot of time, so it is suitable for you to do in this May Day holiday (not only SDE, you can be anything you want to do, you have no time to do), you can have full Time to decide whether to experience it, if you are not satisfied, you can reinstall your vs.net :) Ok, finally thank you light blue, if not he I am going to get SDE, experience Microsoft's psychedelic, elegant beta test Application Procedures. I really like his website, especially in his FTP: from blood, from blood, from blood, trustworthy. It reminds me of the May Day 5th Youth Day, burning the Zhaojialou, declares that the war is required to be courage and blood, so five after May Day, this is worthy of our memory and admire can arouse a lot of buried Chinese Youth Day, active and jumping emotional thoughts.
especially:
This article 9CBS signature start, reprint, or adaptation, please indicate the author and the source. If there is a problem, please send an email to new2001@msn.com
The above text and pictures involve other people's privacy and personal rights, all texts and pictures are only used for internal communication and do not make any news published and commercial purposes.