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 the program code developed in C and other languages. executable files are compiled into machine code related to the CPU Instruction Set 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/18.07.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 directly call 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.Windows Mobile development FAQ set (2) released on: Software Development Network-programming network that provides programming development materials: Internet
2. Q: Can I define a macro that can be used by all files in Visual Studio? For example: # define AA, which must be used in all. cs files # if AA public class A () # else public class B ();
A: Yes. In Solution Explorer of VS 2005, right-click a project and select its properties. On the Build page of the Properties dialog box, you can find the conditional compilation symbol and enter AA to use this symbol in all C # source code files of the project.
3. Q: Can I convert a Smartphone application to a Pocket PC application?
A: Yes. In. NET Compact Framework 2.0, as long as you do not use some special APIs, the Pocket PC application and the Smartphone program can convert each other. You only need to make some adjustments on the control.
4. Q: Does. Net Framework 2.0 support Media coder/decoder? Can I develop a third-party Media Player without relying on. Net CF2.0?
A:. NET Compact Framework 2.0 can develop Direct3D Mobile applications. You can also develop a Native Code Media Player in VS 2005 with C without relying on. NET Compact Framework 2.0.
5. Q: Is a smart device program developed using. Net much less efficient than a program developed using C language?
A: use.. NET programs are slower than local programs developed using C language. However, for general applications, the downrate is not much lower, unless it is a program that requires real-time processing of hardware or I/O, it must be developed in C language, except for general applications. NET Compact Framework development, because it can obtain the best flexibility and portability.
6. Q: Will the execution efficiency of applications developed by hosting C be higher than those developed by C?
A: No. After the C and C # source codes are compiled, they all become IL code and executed by. NET Compact Framework. Therefore, there is no difference in efficiency.
7. Q: Does. NET Compact Framework 2.0 support mobile devices with different CPUs ?. Is NET Compact Framework 2.0 enhanced in GSM applications?
A:. NET Compact Framework has the cross-platform feature of Windows Mobile. Therefore, you do not need to consider the underlying OS, CPU, and other hardware factors during development. Currently,. NET Compact Framework supports common CPUs, such as ARM, MIPS, SH, and x86. In addition, in terms of GSM applications, the application of Smartphone is mainly strengthened.
8. Q: What is the status of MFC in Windows Mobile Development? The Programming Microsoft Windows CE. NET book written by Douglas Boling does not seem to recommend that you use MFC to develop Windows Mobile applications.
A: MFC is still developed in local C mode. It features high execution efficiency, but it must spend more time on programming skills such as resource allocation and recycling. If you use. NET Compact Framework development, although the execution efficiency is slightly worse than local programs, but overall, portability and flexibility are good, and do not have to worry about recycling resources, developers can focus on really important business logic processes.
9. Q: What is the difference between. NET Compact Framework 2.0 and 1.0?
A :. NET Compact Framework 2.0 improves the existing controls and class libraries of 1.0, provides more support, and adds many types and controls ,. NET Compact Framework 2.0 is closer.. NET Framework, and the efficiency has also been improved by 1.0.
10. Q: How can I generate a program shortcut in the start-> program menu when creating an installer?
A: Create A Smart Device Cab Project in VS 2005. On the File System page, you can see Application Folder. This is the position of Start-> Program, you can create a shortcut for Primary Output, move the shortcut to Programs Folder, and build the Cab file.
11. Q: What are the main differences between mobile devices and WEB page design?
A: In the Visual Studio development environment, the mobile device and Web design are very similar and can be designed in the same language. The difference is that the classes and controls that can be used are different.
12. Q: Can I double-click, right-click, intermediate key-click, and other user events in. NET Compact Framework?
A: The device running Windows Mobile has no mouse, so these events do not exist. For frequently-used context menus, you can click and hold the context menu for a period of time on the touch screen.
13. Q: Can CSS style sheets be used for Mobile application interface processing?
14. Q: Can I use a horizontal screen on a Smartphone?
15. Q: How can I adjust the control position in the Pocket PC so that the application can support horizontal screens?
A: You can set the Anchor and Dock attributes of the control to adapt to the screen.
16. Q: What do you need to pay attention to after the interface is developed?
A: In general, you must redesign the user interface to be transplanted to different platforms. All you can reuse is the business logic, not the user interface.
17. Q: I used a lot of controls during mobile development and it is difficult to display them on one page. How do I add a scroll bar for them?
A: You can place these controls in A Panel and set the AutoScroll attribute to true. If you use VS2005 to drag the data source to the form, all controls are automatically included in a Panel.
18. Q: TableAdapter has never appeared in. NET Compact Framework 1.0. Is it a new feature?
A: Yes. TableAdapter is newly added in. NET Compact Framework 2.0.
19. Q: Does SQL Mobile have an enterprise manager like SQL Server? Does Visual Studio 2005 support viewing SQL Mobile databases directly on the desktop?
A: You can use the Enterprise Manager of SQL Server 2005 to connect to the SQL Mobile database for editing. Visual Studio 2005 also supports creating or modifying SQL Mobile database files on the desktop.
20. Q: How can I cancel saving after the submission is successful?
A: currently, BindingSource does not support transactions. Therefore, there is no way to undo transactions after successful commit.
21. Q: the memory size of a mobile device is small. Is there a size limit for filling DataSet?
A: DataSet has no logical size limit. However, the DataSet size must be smaller than the available memory before the current period. Otherwise, an error occurs when the memory allocation fails.
22. Q: Can I use DataBinging if the data in the data source needs to be processed before display (for example, format conversion?
A: BindingSource directly associates DataSet with the control. Therefore, if other operations are required, BindingSource cannot be used. Alternatively, after accessing the database, you can perform necessary processing on the data to be converted in DataSet before displaying the data.
23. Q: DataSet actually generates a set of data copies in the memory. How can I solve the version control problem?
A: DataSet does not have version control issues. When you submit data back to SQL Mobile, some mechanisms are required to ensure that the modified data is up-to-date, but the data structure of DataSet itself will not change.
24. Q: Can I update the database information on the server through a program on the Pocket PC?
A: Yes. You can use RDA in SQL Mobile to synchronize or update data with remote SQL Server databases. For more information about the implementation, see the SQL Server documentation.
25. Q: Do I Have To Install SQL Mobile on a Mobile device?
A: Yes. SQL Mobile must be installed on Windows Mobile or Windows CE devices.
26. Q: Does SQL Moble support stored procedures?
A: Not Supported currently.
27. Q: Must SQL Mobile and applications be deployed on the same device? Can I connect remotely? Is it a text database?
A: Yes. SQL Mobile must be deployed on the same device as the application. Currently, remote connection is not supported. SQL Mobile is a file database, but not a text database.
28. Q: Can I replace SQL with XML in some applications?
A: Yes. XML query efficiency is lower than SQL Mobile, but more components do not need to be installed when there is little data, which is an advantage of XML.
29. Q: What is the difference between Tableadapter and DataAdapter? Is DataAdapter a combination of multiple tableadapters?
A: No. TableAdapter is an extension of DataAdapter. TableAdapter contains information about the corresponding data table. TableAdapter completes a complete operation from database connection, SQL statement execution, and result filling to DataSet. DataAdapter only supports data filling.
30. Q: Why does the msrepl_tran_version or rowguid field appear in the database table after Publications after the sdf file of SQL Moblie is created?
A: These two fields are automatically added by the system to ensure data synchronization. Do not modify them.
31. Q: I have a Reflector decompilation tool on the Internet. I can decompile EXE and DLL developed by C # In 99%. How can I better protect my applications?
A: At present, most applications adopt obfuscation and key string encryption methods. A better method may be further explored. Windows Mobile development FAQ (3)
1. Q: Is the SQL Syntax of SQL Mobile different from that of SQL Server?
A: the syntax of SQL Mobile is slightly different from that of SQL Server. You can find the specific SQL statements supported by SQL Mobile in the SQL Mobile document. In general, for the vast majority of development, these differences will not affect.
2. Q: Does SQL Mobile support the B/S mode?
3. Q: Can I access the database generated by. NET Compact Framework 1.0 on. NET Compact Framework 2.0?
A: The format of the SQL Mobile database is the same as that of SQL Server CE 2.0. Therefore, you can directly access the database in. NET Compact Framework 1.0.
4. Q: Does the SQL Mobile Database Support XCOPY? Can I simply copy it to another Windows Mobile device?
A: Yes. The SQL Mobile database itself is a file database, which can be directly copied to other Windows Mobile devices or simulators installed with the SQL Mobile support components.
5. Q: Does Visual Studio. NET 2003 support Windows Mobile 5.0 development?
A: No. If you are developing an application based on Windows Mobile 5.0, use Visual Studio 2005.
6. Q: What technical preparations need to be made to switch from traditional PC programmers to mobile device development?
A: The development of mobile devices requires the same basic development language and development technology as that of PCs. You only need to know which aspects of mobile devices are different from those of PCs.
7. Q: C # Can I develop Windows Moblie applications?
8. Q: If I get the. NET Compact Framework 2.0 installer and install it on a Windows Mobile 5.0 device?
A: Visual Studio 2005 provides the. NET Compact Framework 2.0 installer, which is automatically deployed on mobile devices during development and deployment.
9. Q: Windows Mobile 5.0 does not integrate. NET Compact Framework 2.0. Should the. NET Compact Framework 2.0 be included in the generated application installation package?
A: Technically, yes. However, whether. NET Compact Framework 2.0 can be provided in applications depends on Microsoft's authorization.
10. Q: How can I package and release. NET Compact Framework 2.0 together with an application?
A:. NET Compact Framework 2.0 has A separate CAB installation package. You can package this file and the application into an installation package.
11. Q: Does Visual Studio 2003 provide good compatibility?
A: A. NET Compact Framework 2003-based program developed with Visual Studio 2.0 can run on A Windows Mobile 5.0 device.
12. Q: Do I develop COM or DLL on Windows Mobile?
A: DLL dynamic shared libraries can be developed.
13. Q: C # Does Windows Mobile 5.0 support DirectX development?
14. Q: Can the existing Smartphone 2003 application developed using Visual Studio be transplanted to the Windows CE 5.0 platform?
15. Q: Windows Mobile 5.0 built-in infrared interface API?
A: Windows Mobile 5.0 does not update its support for infrared interfaces. You need to use the previous method to develop infrared interfaces, such as serial communication.
16. Q: How to Develop mobile games, especially online games that can interact with each other?
A: Windows Mobile fully supports game development. You can use DirectX technology to develop 3D or 2D interfaces. For network components, Windows Mobile supports socket communication. Therefore, in terms of technology, it is absolutely no problem to develop online games.
17. Q: at present, our company is more concerned with the embedded field, that is, Windows CE, rather than Windows Mobile. We are mainly focusing on the IPTV field. What resources are there in this regard?
A: Windows CE is A customizable embedded operating system suitable for devices with few memory. OEMs can use the Windows CE design platform and custom applications to give users the best experience on a variety of devices, such as handheld devices, thin clients, logical controllers, and a variety of advanced consumer electronics. Windows Mobile is a complete software platform built based on Windows CE. Unlike Windows CE, Windows Mobile Smartphone and Pocket PC operating systems are designed for devices that require special hardware configurations. The software includes standardized interfaces and applications to ensure compatibility in various hardware designs. Therefore, Windows Mobile and Windows CE resources are universal. You can get the resources and help at http://www.microsoft.com/china/mobile?http://#/ windowsmobile/communities/default. mspx.
18. Q: How can we obtain technical support from Microsoft when we encounter some underlying interface problems during application development on Windows Mobile?
A: Microsoft will continue to provide support to independent software developers and developers Based on Windows Mobile operating systems. They can directly seek support from the 800-820-3800 global technical support center, or provide details on specific issues, we will provide corresponding solutions.
19. Q: How can we put our software in the Mobile2Market project of Microsoft? Is there any discount for MVP?
A: The Mobile2Markert project is very favorable in China. Currently, there is no special offer for MVPs. Also, for more information about how to place software in Mobile2Market, see http://www.microsoft.com/china/mobile/developer/developerprograms/mobile2market/default. asp.
20. Q: Which tools can be used for Pocket PC 2003 Development?
A: To build A local C Application for Pocket PC 2003, you need Microsoft eMbedded Visual C 4.0, Microsoft eMbedded Visual C 4.0 Service Pack 3, and Pocket PC 2003 SDK.
21. Q: What should I do in an application to support Windows Mobile 2003 Second Edition enhancements (such as high resolution or landscape screens?
A: Windows Mobile 2003 Second Edition provides brand new screen orientation and resolutions, including horizontal, square, and VGA support for Pocket PCs and QVGA support for Smartphone. This version does not require a new SDK.
22. Q: Can a Pocket PC 2002 application work on a Pocket PC 2003 device?
A: Pocket PC 2002 applications with well-functional documentation APIs can run on the Pocket PC 2003 device without recompilation.
23. Q: How to migrate data from eVB to Visual Basic. NET?
A: migrate data from eVB to Visual Basic. NET is not easy, but the benefits of migration far exceed the cost: • richer data types: eVB only has 16 bytes of VARIANT; Visual Basic. NET.. NET Framework. • Faster execution: eVB needs to be explained; Visual Basic. NET is compiled into local code by the JIT (Real-Time) compiler before execution. • Improved Error handling: eVB only supports "On Error" and Visual Basic. NET supports structured exception handling. • Supported structure: eVB is not supported; Visual Basic. NET supports namespaces, classes, and structures. • Object-oriented: eVB is process-oriented; Visual Basic. NET supports full OOP (Object-Oriented Programming ). • "First-class citizens": eVB always wants to catch up with MFC; Visual Basic. NET is the core of. NET. • Local XML support: not supported by eVB; Visual Basic. NET supports local XML and XML Web Services. • Improved data models: ADO. NET far exceeds ADOCE; it is the best data model. • Safer and more reliable execution: eVB is a scripting language, and Visual Basic. NET is hosted code. • There are many more! At the same time, there are a variety of resources (from porting experiments to technical articles) to help developers with this transition.
24. Q: What development tools should I use to compile a. NET Compact Framework-based Pocket PC application?
A: Microsoft Visual Studio. NET 2003 allows Visual Basic. NET or C # programmers create managed code applications for Pocket PC 2000, Pocket PC 2002, and Pocket PC 2003 devices (that is, those.. NET public Language Runtime Library ). To develop a hosted code application for Pocket PC 2000 and Pocket PC 2002 devices, you can use the out-of-the-box Visual Studio. NET 2003. During development, Visual Studio. NET 2003 automatically installs the. NET Compact Framework to the RAM of these devices .. NET Compact Framework is already in the ROM of all Pocket PC 2003 devices, and Visual Studio. NET 2003 supports it through the Pocket PC 2003 SDK.
25. Q: What resources can be used for Windows Mobile 2003 Second Edition development?
A: download the new Windows Mobile Developer resource package, which includes White Papers and new and updated code samples. This version does not require a new SDK. You can use the new simulator package to test the application. EMbedded Visual C 4.0 developers should download eMbedded Visual C 4.0 Service Pack 3.
26. Q: What tools can be used for development in Smartphone 2002?
A: To start developing Microsoft Smartphone 2002 applications, you need eMbedded Visual C 3.0 and Smartphone 2002 sdks. Both are available in Windows Mobile Developer.
27. Q: Can MFC or ATL be used for development in Smartphone 2002?
A: No. Smartphone 2002 does not support MFC and ATL development.
28. Q: Can I use eMbedded Visual Basic 3.0 to build a Smartphone 2002 application?
A: No. It does not support eVB development with the Smartphone 2002 as the target.
29. Q: Which tools can be used for Microsoft Smartphone 2003 Development?
A: There are two development options for Smartphone 2003, or develop local code Through eMbedded Visual C 4.0 with Service Pack 3, or develop managed code Through Visual Studio. NET 2003. In both cases, you need to download the Smartphone 2003 SDK. The Windows Mobile 2003 Second Edition simulator package enables you to test applications on the Second Edition device. EMbedded Visual C 4.0 and Smartphone 2003 sdks can both be obtained by Windows Mobile Developer.
Windows Mobile development FAQ set (4)
Windows Mobile development FAQ (5)
Original article addressHttp://www.mscto.com/mobile/20081206-17167.html