Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

MS Emulator

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-09-2007, 04:50 PM
Knows the basics
 
Join Date: Oct 2007
Location: Berkshire, UK
Posts: 76
Awards Showcase
Beta Tester 
Total Awards: 1
Default MS Emulator

This might be a bit OT, but I wondered if any of the experts out there have some experience with Microsoft's standalone WM5 emulator?

I've finally got the emulator itself to work, but when executing my compiled Basic4ppc program it fails to start - giving an error on SQLDevice.DLL. I assume that this is due to not finding .NET 2.0 - I also tried Erel's TestNet2 (thanks Erel) program and that also fails on its DLL (a program with no libraries will run).

I installed .NET CF 2 SP2 to the emulator and it appeared fine throughout (looked the same as on the real device, asked for a reset). The "host" XP machine also has .NET 2 installed.

It would be nice to have an emulator to try different screen sizes etc.

Anyone tried this?

Geoff.
Reply With Quote
  #2 (permalink)  
Old 12-09-2007, 05:32 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I've only used the WN2003SE emulator but I would guess that the WM5 one is similar.

I've just tried this with an exe that needs the network.dll and it worked fine for me on the WM2003SE emulator running standalone outside Visual Studio.

Make sure the device exe and the required libraries are in the same folder - they should already be as B4PPC will have copied them to your development folder. Start the emulator and configure the shared folder to point to the exe folder. Start File Explorer in the emulator, go to the Storage card and you should see the exe and the library. Click the exe and it should go (very slowly - I've a 3.4Ghhz CPU and it's slow even on this!).

I guess that you have found that as long as you save the emulator state you don't need to reload .NET 2.0 each time you start it.
Reply With Quote
  #3 (permalink)  
Old 12-09-2007, 05:41 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,728
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The easiest solution is to use WM6.0 emulator instead.
It comes with .Net CF 2.0.
Reply With Quote
  #4 (permalink)  
Old 12-09-2007, 06:43 PM
Knows the basics
 
Join Date: Oct 2007
Location: Berkshire, UK
Posts: 76
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I've done everything pretty much as you described, including the save-state between re-starts. The somewhat frustrating thing is that it all looks right - until I start my program! You are absolutely right about the speed, and it's on a laptop!!!

I'm still wrestling with WM6 emulation, I think I have the right files - followed instructions on a Microsoft Exchange Team blog page. So far the installs fail every time, but without any meaningful error messages - just says "unsuccessful". Still working on it though!

Geoff.
Reply With Quote
  #5 (permalink)  
Old 12-10-2007, 08:56 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

If you still get nowhere you may care to read this thread for an alternative.

http://www.basic4ppc.com/forum/chit-chat/503-freeware-program-see-your-pda-pc.html

I occasionally use MyMobiler http://www.mymobiler.com/ which in some ways is better than the emulator. Be sure to read my caveat in post #5 of the thread.
Reply With Quote
  #6 (permalink)  
Old 12-10-2007, 09:03 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,728
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You should first install Microsoft Standalone Emulator: http://www.microsoft.com/downloads/d...displaylang=en

Afterwards, install WM6 image:
http://www.microsoft.com/downloads/d...displaylang=en
Reply With Quote
  #7 (permalink)  
Old 12-10-2007, 06:56 PM
Knows the basics
 
Join Date: Oct 2007
Location: Berkshire, UK
Posts: 76
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thanks, for info. Yes, that's the way I did the original install attempt - still haven't worked out why the WM6 images part kept failing. However I have got an update:-

Finally got WM6 to install and run, but only after installing the update to version 2 of the emulator. It was a beta when I first looked, but now seems to be generally available here:
http://www.microsoft.com/downloads/d...displaylang=en
After this, the same WM6 images installed OK.

My run program runs but now I've got a different problem with it - I get a "FormatException" failure every time it attempts to read or write a picture in a database BLOB field (tried different parts of the code, different records, tables - it's always the same). The same program works fine on both the desktop and my actual WM5 IPAQ. Everything else is OK, including all the other DB data.

At least it's progress!

I will also definitely have a look at MyMobiler.

Thanks again - this forum has already solved a lot of issues for me.
Geoff.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Registering the binaries for windows mobile 6 emulator Dinis Questions (Windows Mobile) 2 08-30-2008 11:16 PM
Null modem emulator von WM5 schimanski Questions (Windows Mobile) 5 04-03-2008 12:14 PM
Emulator on desktop bdiscount Questions (Windows Mobile) 9 10-21-2007 04:41 PM
Device emulator Cableguy Code Samples & Tips 1 06-25-2007 03:36 AM
Emulator leo Code Samples & Tips 4 05-21-2007 06:17 PM


All times are GMT. The time now is 06:00 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0