Windows Mobile device emulator - creating a device with user permission

I am currently developing an application for Windows CE 6.0 with Visual Studio 2008 and Compact Framework 3.5.

The device itself has a resolution of 800x480 pixels.

I am currently developing an application on the device itself that works great. However, in the end, I cannot guarantee that I always have access to equipment (for example, today I work from my home office), and I want to be able to use the device emulator.

I am using a Windows Mobile 5.0 R2 image that comes with a Microsoft Device emulator. Most of my forms are resolution independent and work out of the box on a 240x320px emulator screen.

However, there is one form with a fixed resolution of 800x480, but I cannot figure out how to change or create an emulator (Windows Mobile or Windows CE, it does not matter) with a predefined resolution.

Any help would be appreciated

+6
source share
2 answers

Open Visual Studio, make sure the emulator is not running, and then follow this "path"

  • Menu Tools-> Options
  • Open the settings tree for DeviceTools β†’ Devices
  • Select your emulator device in the "Devices" list
  • Click "Save As" and give it a name (e.g. NewRes)
  • Select a newly created device in the list.
  • Click Properties
  • Click "Emulator Options"
  • Select Display Tab
  • Change the video settings to the desired resolution.
  • Click OK 3 times
  • Change the target device in the project to the new device.
  • Deploy
  • Enjoy
+11
source

You can configure the device emulator device configuration by editing the associated decfg files.

To create a decfg file in the device emulator manager:

  • Select the desired device configuration from the data store (for example, Pocket PC Pocket PC emulator).
  • Connect to it (right click - Connect)
  • When starting the device, save the configuration of the machine (right-click - Save-as)
  • Give the file a name (for example, test.decfg) and save it by default ("% USERPROFILE% \ Documents \ My Device Emulators")

At this point, stop the emulator (right-click - shutdown). Now you can edit the saved decfg file containing all the parameters of the emulated device (memory, resolution, etc.).

You can start a new custom emulator from the device emulator manager in the "My device emulators" section (see the screen below).

Device emulator manager

Example decfg file contents:

<?xml version="1.0"?> <DeviceEmulator xmlns="http://schemas.microsoft.com/DeviceEmulator/2006/01/DeCfg"> <Board> <CpuCore Reconfigurable="false">ARMv4</CpuCore> <CpuOptions Reconfigurable="false">TDI</CpuOptions> <VFP Reconfigurable="false">false</VFP> <OSImage Reconfigurable="false" Address="0">C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\DeviceEmulation\0409\PPC_USA.bin</OSImage> <MemSize Reconfigurable="false">128</MemSize> </Board> <Emulator> <DefaultSave Reconfigurable="false">true</DefaultSave> <FuncKey Reconfigurable="true">193</FuncKey> <HostKey Reconfigurable="true">Right-Alt</HostKey> <Language Reconfigurable="false">1033</Language> <VMID Reconfigurable="false">{812DA9C7-D9F2-4C57-85CD-29A7ED08C20B}</VMID> <Video Reconfigurable="false" Width="400" Height="234" BitsPerPixel="16"/> </Emulator> <Peripherals> <SerialPort Reconfigurable="true" UARTNumber="0">none</SerialPort> <SerialPort Reconfigurable="true" UARTNumber="1">none</SerialPort> <SerialPort Reconfigurable="true" UARTNumber="2">none</SerialPort> </Peripherals> <Platform>Windows Mobile 5.0 Pocket PC SDK</Platform> </DeviceEmulator> 
+1
source

Source: https://habr.com/ru/post/905537/


All Articles