How to transmit files between a Pocket PC simulator and a PC

Source: Internet
Author: User
The easiest way to move files to the simulator is to include them as part of the project. One advantage of using this method is that when force resetting is performed on the simulator, you only need to re-build the project to resume the test.

The process of using this method is as follows:

    1. Open a project in Visual Studio. NET.
    2. On the project menu, clickAdd existing item...(Add existing items ...).
    3. In the add existing Item dialog box, select the file to be copied to the simulator.
    4. ClickOpen(Open ). This file is added to the project.
    5. In Solution Explorer, select the file to be added.
    6. In the Properties window, verify that the build property is setContent(Content ). Items configured as content will be copied to the target device as a single file. The item configured as embedded Resource (embedded Resource) is the applicationProgramPart of the executable file.
    7. Create a project. The file will be copied to the device along with the application.

Copy a file from a shared file

The second method provides greater flexibility and requires almost no additional work. This method uses the built-in network file sharing Function of the Pocket PC operating system, which is subsequently provided by the simulator included in Visual Studio. NET.

This method is divided into two parts: Configure sharing on the development computer, and then access sharing through the file Explorer (File resource manager) of the simulator.

Two configurations are required for sharing. First, you must configure the computer to enable sharing. Second, you must configure the folder to be shared.

Enable sharing on a development computer running Windows 2000

    1. Click "Settings" on the "Start" menu, point to "network and dial-up connections", and double-click "Local Connection ".
    2. In the local connection status window, click Properties ".
    3. Enable Microsoft network file and printer sharing in the Local Connection Properties window ".
    4. Click OK to close the Local Connection Properties window.
    5. Click Close to close the local connection status window.

At this point, you have completed the configuration of the development computer, you can share files. Next, share the folder where the files to be copied to the simulator are located.

Share folders in Windows 2000

    1. Start file explorer ).
    2. In File explorer, right-click the folder to be shared, and then clickProperties(Attribute ).
    3. In the Properties window, clickSharing(SHARE) tab.
    4. On the sharing tab, select a shared folder and provide the shared name.
    5. ClickOK(OK) Close the Properties window.

Now that you have completed the configuration of the development computer, you can copy the file. First, you need to copy all the files to the simulator and place them in the shared folder. Change the device name in the PPC simulator: Choose "Settings"> "system"> "about"> "device ID"> "device name" from the simulator to change the device name. It doesn't matter what it is, as long as it is not the default setting. Perform the following steps to move the file to the simulator:

    1. Start the simulator.
    2. Start file explorer from the simulator ).
    3. On the file explorer menu, clickOpen(Open ).
    4. The open dialog box is displayed. Follow\ Mycomputer \ myshareThe format specifies the name of the development computer and the shared name you created.
    5. ClickOK(OK ).

According to the security settings on the development computer, the computer may prompt you to enter the user name and password before allowing access to share.

Now, you can copy files to/from the sharing on the development computer and the simulator.

Note:When using devices, copying files using these methods has the same effect, but there is a known problem. By default, a Pocket PC device has the device name "Pocket PC ". You cannot access sharing unless you change the name.

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.