uchouax

Hi all,

I hope this is the right forum for this question.

I am new to mobile development.

I have VS 2005 and windows mobile 5 SDK.

I am trying to run few application on the window mobile 5.0 Emulator.

For example when I deploy HomeScreen example (provided with SDK) it doesnt show up on the Emulator.

Similarly if I deploy any sample application on the emulator from VS, I can't locate it. Only when I run it it shows up on the emulator screen.

Is there a way I can deploy files on the emulator, locate and execute them (The way its done in Series 60 Emulator)

Currently I dont have device to test my app on. That's why I want to test most of the things on emulator only.

Please let me know.



Re: Device Emulator General Deploying files on Emulator

Ilya Tumanov

Sure. Use file explorer on _emulator_, not desktop. Or cradle the emulator and use Active Sync to see files on the emulator.

Emulator has its own simulated file system which is not mapped to your PC¡¯s hard drive as some developers tend to believe.






Re: Device Emulator General Deploying files on Emulator

Christopher Fairbairn

Hi,

uchouax wrote:
I am trying to run few application on the window mobile 5.0 Emulator.

For example when I deploy HomeScreen example (provided with SDK) it doesnt show up on the Emulator.

Similarly if I deploy any sample application on the emulator from VS, I can't locate it. Only when I run it it shows up on the emulator screen.

Is there a way I can deploy files on the emulator, locate and execute them (The way its done in Series 60 Emulator)

The samples with the SDK typically are not designed to be installed outside of the development envrionment.

When you deploy them from Visual Studio they will be downloaded into a subdirectory within \Program Files on the PDA (emulator). Visual Studio then executes the executable.

If you want to re-run one of these samples outside of Visual Studio you would have to use the "File Explorer" applicaton on the emulator to navigate to \Program Files\<name of specific app>\ and then tap on the application icon to launch it.

If you were shipping applications to an end user to install you would package up all the required files and registry settings etc into a CAB file. You can think of a CAB file as a kind of setup.exe designed to run directly on a PDA. As part of the CAB file you would add a shortcut into the start menu (Programs folder), so users could launch the executable without having to browse for it.

MSDN has some documentation on creating a CAB file to install an application

You can also find various articles online such as CodeProject's "Creating Pocket PC Application Setup Packages using Cab Wizard" - http://www.codeproject.com/ce/pocketpc_deploy.asp

Hope this helps,

Christopher Fairbairn






Re: Device Emulator General Deploying files on Emulator

Alex Shemshurenko

hi

I have some problems with deploying my application on emulator , and may be you can help me.

My applcation uses some dll.And i have to load this dll when application is starting.

The problem is that on emulator i cand find this dll.

file system looks completely virtual and i dont know how to put additional files into my program folder on emulator.

Thanks.





Re: Device Emulator General Deploying files on Emulator

Christopher Fairbairn

Hi Alex,

Alex Shemshurenko wrote:
The problem is that on emulator i cand find this dll.

file system looks completely virtual and i dont know how to put additional files into my program folder on emulator./quote]

Yes the Device Emulator is a totally emulated device environment, complete with it's own filesytem which is completely seperate from your Desktop PC's.

There are a couple of ways you can get files into the emulator depending upon your exact situation. Possibilities include:

  • Use a tool called "Remote File Viewer" (see the Visual Studio Remote Tools submenu within the Visual Studio 2005 section of your desktop's Start Menu)
  • Add the built DLLs as "content files" to your executable project (if written in a managed language i.e. C# or VB.NET).
  • Within the device emulator select it's settings dialog and map a folder on your desktop as a "virtual SD Card" within the emulator. Place your files into this folder, and then use the emulator's File Explorer application to move them to where they need to be.

Hope this helps,

Christopher Fairbairn






Re: Device Emulator General Deploying files on Emulator

Alex Shemshurenko

thank you very much