Windows Mobile development FAQ (1)

Source: Internet
Author: User
Tags microsoft website

Reprinted from: http://www.csai.cn

 

1. Q: Which project type can I select to create a smart device application when creating a project?

A: In the Create Project dialog box of Visual Studio, select Visual C # or visual basic project type, select the smart device template, select the corresponding device SDK, and select "device application ", you can create a mobile device application.

2. Q: What are the differences between hosted code and local code?

A: managed code refers to program code developed using. NET Compact framework. executable files are compiled into Il, and A. Net runtime environment is required for execution. Local Code refers to program code developed in C ++ and other languages. executable files are compiled into machine codes related to CPU instruction sets and can be directly run.

3. Q: Can I briefly introduce OTA and MMS support in Magneto?

A: Magneto has good support for Ota. In the communication section of the SDK documentation, we have a special introduction to Ota. MMS applications are basically developed by a third party, because MMS is based on the WAP protocol, and Magneto itself supports WAP well. Specific protocols can also be found in the SDK documentation.

4. Q: Can I use ADO. Net to develop a PDA database program using Visual Basic. Net?

A: You do not need to reference system. Data. oledb when developing a PDA database in Visual Basic. net. You only need to reference the system. Data. sqlserverce namespace. The database operation classes in the namespace are basically the same as those in ADO. net. You can use these to develop SQL Server CE applications.

5. Q: Can I use. NET Compact framework in Visual C ++ 2005?

A: No. Currently,. NET Compact framework only supports C # and VB. NET, but does not support C ++/CLI. However, in vs. NET 2005, you can use C ++ to develop native code to support mobile devices.

6. Q: Where can I get the smartphone development environment?

A: The smartphone SDK can be found on the Microsoft website, while Visual Studio 2005 beta 2 can be obtained through participation in Microsoft activities. MEDC 2005 participants received development CDs for vs. NET 2005 and Windows Mobile 5 SDK.

7. Q: How is the managed code execution efficiency? Compared with the code written in Visual C ++.

A: The execution efficiency of managed code is certainly not as high as that of local code, but managed code also has some benefits that cannot be replaced.

8. Q: Can I use Visual Studio. NET 2003 to develop applications that can run on Windows Mobile 2005?

A: First, correct it. The latest operating system of Windows Mobile is Windows Mobile 5, not Windows Mobile 2005. Yes, applications developed using vs. NET 2003 can run normally on Windows Mobile 5, because. NET Compact framewrok 1.0 SP3 is built in Windows Mobile 5 Rom.

9. Q: Can I use Pocket access on a PDA? SQL CE is too big.

A: You can use Pocket access to develop applications on Windows Mobile. You can use C ++ to call oledb or adoce to access the pocket access database.

10. Q: Are New Features of Visual Studio 2005 supported only in Windows Mobile 5 and 2003?

A: The new function is divided into two parts. NET Compact Framework 2.0 provides new features, which can be supported by Windows Mobile 2003, but must be installed. NET Compact Framework 2.0, and the other part is a special feature of Windows Mobile 5 .. The "what's new" section in the NET Compact Framework 2.0 and Windows Mobile 5 development documents describes the new features in these two aspects.

11. Q: How can I configure a connection to a mobile network in the simulator?

A: If a simulator needs to connect to a mobile network, it must have dedicated hardware to provide support. A gprs simulator can be connected to the serial port of the developed PC. This is described in the SDK documentation.

12. Q: Can SQL ce run with only one file like pocket access? Do I have to install a server like a PC to use it?

A: No. You only need to install the SQL Server ce support library on Windows Mobile, that is, some DLL files. The database file of SQL Server CE is a separate file and does not need to be installed on a server.

13. Q: How can I deploy a developed program on a mobile phone? What are the requirements for mobile phones?

A: The developed program needs to be packaged into a cab file and deployed on the mobile phone. In addition to the installation through ActiveSync, you can also install applications through network downloads, memory cards, and other methods. Mobile phones must be compatible with the target platform of the development program. For example, applications developed for Windows Mobile 5 may not run well on the Windows mobile2003 platform.

14. Q: What is the difference between developing a program on the simulator and the real environment? What do you need to pay attention?

A: The simulator has a high degree of simulation. The Windows Mobile 5 simulator can even support arm commands, so there is basically no compatibility problem. However, for application scenarios that require external devices to be connected, such as wireless networks and GPS devices mentioned in the frontend, actual devices are needed.

15. Q: What aspects should I pay special attention to when developing international applications?

A: For international applications,. Net itself has provided excellent support. The User Interface text can be saved in the corresponding resource file, and then the application determines the language version of the operating system to call the corresponding text.

16. Q: Do I have to consider which CPU is used for developing a Pocket PC program using. Net?

A: No. Both x86 instruction sets on virtual machines and arm instruction sets on actual devices are the same for. NET Compact framework programs.

17. Q: Does Windows Mobile 5 support new development programs through voice control?

A: Not Supported yet.

18. Q: Can I develop a Pocket PC program in vwd2005 bata2? Does the Pocket PC have a browser?

A: Yes. The Pocket PC platform has a built-in browser.

19. Q: Does Visual Studio 2005 support mobile 2003 devices?

A: Yes. VS 2005 comes with the Windows Mobile 2003 SDK.

20. Q: What is the obvious difference between Windows Mobile 5.0 for smartphone and earlier versions? What do we need to pay attention to when testing this field?

A: Windows Mobile 5's smartphone platform changes more at the API level, such as database support and gps api support, this is detailed in the Windows Mobile 5 SDK documentation.

21. Q: Is the data transmission between CDMA and GPRS transparent for development?

A: for software development, data transmission is transparent. For upper-layer applications, CDMA and GPRS Support data transmission as long as HTTP or TCP/IP protocols are supported.

22. Q: Can Visual Studio. NET support s60 System Development of Nokia?

A: Yes. Visual C ++ supports the development of Nokia s60.

23. Q: What are the main differences between Pocket PC and mobile development?

A: Windows Mobile is a Microsoft platform based on Windows CE. net. It includes two versions: Pocket PC and smartphone.

24. Q: Where can I download SDE? Where can I download a Pocket PC 2005 simulator?

A: SDE is the vs extension used to develop mobile device programs in the early days. It seems hard to find it on the Internet. In fact, you don't need to install it. Just install the required version of the Pocket PC or smartphone SDK. The addresses of sdks and Simulators developed by various versions of Windows Mobile can be downloaded from this blog (http://twodays.cnblogs.com/archive/2005/06/30/184107.htm ).

25. Q: Can. NET Compact Framework 2.0 be installed on Windows Mobile 2003?

A: Yes .. NET Compact Framework 2.0 must be manually installed on Windows Mobile 2003.

26. Q: Are there any Windows Mobile programming websites or forums?

A: opennetcf.org, www.devbuzz.com, www.codeproject.com, www.msdn.com/equality/#www.pocketpcdn.com

27. Q: Can the. NET Compact framework on Windows Mobile 2003 be upgraded to. NET Compact Framework 2.0?

A: Yes .. NET Compact Framework 2.0 must be manually installed on Windows Mobile 2003.

28. Q: What is the connection and difference between WML file writing and development using. NET Compact framework?

A: WML is a Web-based development method that allows you to browse files using the WAP browser .. NET Compact framework is a program running on a device and is developed based on applications.

29. Q: When Using. NET Compact Framework 1.0 for development, what is the performance difference between using EVC to directly call native code and using C # Through P/invoke? On. NET Compact Framework 2.0, how does one use C ++ to directly call and use C # Through P/invoke?

A: Using EVC compute to use native APIS is more efficient than using. NET Compact framework to call native APIs through P/invoke. This is a feature of. NET Compact framework. When calling the native API from managed code, it performs some extra type conversion actions internally, which reduces the efficiency.

30. Q: Is there any control that supports HTML text display?

A: The webbrowser control can be used for HTML text.

31. Q: After the cab is installed, the "uninstall program" will be automatically generated on the Pocket PC. How can I create an installation package so that the "uninstall program" will not be automatically generated "?

A: Use VS 2005 to create a smart device cab project. Right-click the cab project of Solution Explorer and choose property. The default value is nouninstall, change to true.

32. Q: Can opennetcf run in. NET Framework 1.1? Can controls be used together with. NET Framework 1.1 controls? How to add the opennetcf control to Visual Studio. NET 2003?

A: When designing NET Compact Framework 1.0/1.1, some of them were originally due to limited resources on mobile devices. the classes and controls provided in Net Framework 1.1 are deleted. opennetcf smart device framework is mainly used.. NET Compact Framework 1.0/1.1 does not have any functions. Similar types and additional functions are developed to make up. NET Compact Framework 1.0/1.1. This set of framework is mainly. NET Compact framework program development, except for a few classes written for the synchronization functions of PC and Pocket PC, most of them are in.. NET Compact framework, which is generally not supported.. NET Framework. After the smart device framework of opennetcf is installed, you can view the opennetcf control in the toolbox on the left of vs 2003. You can drag and drop it to use it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.