1. What development tools are required to develop programs for smart devices? To develop smart devices, Visual Studio 2005 Standard Edition or later (SP1 Patch is recommended) or Visual Studio Professional edition or later. All quick releases do not support smart device development. In addition, to develop programs for Windows Mobile 6 on Visual Studio 2008, you must first install the Windows Mobile 6 SDK. The installation sequence is as follows: 1. If you have installed the Windows Mobile 6 SDK before, uninstall it first. 2. Install Visual Studio 2008. 3. Install the Windows Mobile 6 SDK. Related question: Why? In. NET Compact Framework 3.5, A systemsound class can be used to play the system sound, and a sound playerclass can be used to play the .wav audio file. If you use a previous version, you can use the P/invoke function playsound or sndsetsound to play audio files. For audio files in audio and. wmv formats, you will find that their classes are not played in the. net cf base class library. The easiest way to play them is to hand it to shell: String Path = "path to the audio file"; processstartinfo info = new processstartinfo () {filename = path, useshellexecute = true}; process. start (Info); another method is to use WMP. DLL. First, add a pair of c: \ windows \ system32 \ WMP to the project. DLL reference, and then use the following code to play back: wmplib. windowsmediaplayer player = new wmplib. windowsmediaplayer (); player. url = system. io. path. getdirectoryname (system. reflection. assembly. getexecutingassembly (). getname (). codebase) + "\ song.mp3"; player. settings. volume = 100; player. controls. play (); The following describes how to play a video. You can also use shell to play video files. If you want to integrate a media player in your own program, the easiest way is to use third-party controls, such as opennetcf media player controls. Another method is to make such a control by yourself, but it is not that easy: hosting ActiveX controls in Compact Framework 2.0 applications has many related questions in the Forum: Why?
With the release of. NET Compact Framework 3.5, some features of Windows Communication Foundation (WCF) have been added. This is only a subset, so it does not have all the functions of the desktop version. In particular, server-side development is not supported.
The following link details the features supported by WCF on smart devices: the WCF subset supported by netcf messaging in the. NET Compact framework4. how to add Design Support for custom controls? In. NET Compact framework, the code of the control and the code that is supported when the control is designed are packed in different programming sets. This is different from Windows forums in the desktop version. The assembly that is supported during design is compiled for the desktop and configured with an XML file (. xmta. If you are familiar with WPF, you will find that the patterns they support during design are very similar. Few documents are supported during design. Here are some: creating a custom control (Visual C #) msdn webcast: creating custom controls for managed code in Visual Studio 2005 (level 200) (download SAMPE) Below is a forum in the relevant posts: http://social.msdn.microsoft.com/forums/en-US/netfxcompact/thread/cbffc07a-5639-4c57-9e7d-1dc344a72ae5/ 5. how can I let my program identify the direction and resolution? It is very exciting to make your program adapt to different appearance settings and display directions. There is a project called "adapt your app", which can help you develop such a program. Here are some useful articles: step by step: developing orientation-aware and resolution-aware Windows Mobile-based applications in native codedeveloping DPI-aware applications below are some related posts: http://social.msdn.microsoft.com/forums/en-US/vssmartdevicesnative/thread/6656f82e-6de8-4fc7-8e17-61dbe6bc5f77/ development? The messageinterceptor class can intercept short messages that meet certain conditions, and you can choose to directly Delete the intercepted short messages or get a copy of them in the program. When a device receives a short message, you can even enable your program to start automatically. In the following article there is sample code: http://www.peterfoot.net/UsingMessageInterceptorToLaunchAnApplicationOnSMS.aspx if you find that the functions provided by the messageinterceptor class cannot meet your needs, you can develop an unmanaged message rule client that implements the imailruleclient interface. For detailed methods, see the following article: Creating ing SMS messages inside a managed application7. how to develop a booth mode (kiosk mode) application? The Windows Mobile platform does not support the booth mode. If you are trying to develop such a program, you may encounter some problems, such as the taskbar may flash when switching the form. The following are some related articles: Supporting kiosk-Applications on Windows Mobile ("technically achievable". "supported") Windows Mobile in kiosk modewindows ce kiosk mode-Part 11 create a Windows CE image that boots to Kiosk mode8. about ASP. where can I find the net issue? There is a special forum on developing ASP. NET programs for smart devices: http://forums.asp.net/48.aspx. You will get better help there.