How do I open and save files on my emulator

  • Thread starter Thread starter mychevworld
  • Start date Start date
M

mychevworld

I'm using the PC2003 emulator and it seems it doesn't have a real drive
to save files and my application needs to load a XML file during
startup. Is there some other way to do this on the emulator?


Thanks!
 
You include the xml file as content in your project. The build
process should copy it over for you.
 
There's a little pretty util by Alex Feinman (thx Alex) that should copy
files. However, I was not able to make it run, as it throws (at least in my
env, VS .NET 2003/Framework 1.1 SP2) an exception as it's visible from this
excerpt:

C:\Documents and Settings\Saverio>"C:\Programmi\Microsoft Visual Studio .NET
2003\SDK\v1.1\Bin\emucpy" -p 2 "C:\Documents and
Settings\Saverio\Documenti\Visual Studio
Projects\Fence!Mobile\4Mobiles_Sq.XML"

Desktop-to-emulator file copy utility
Copyright 2003 Alex Feinman

Eccezione non gestita:
Microsoft.VisualStudio.DeviceConnectivity.ConManException: Error loading
data store 'C:\Documents and Settings\All Users\Dati
applicazioni\Microsoft\VisualStudio\devices\7.1\conman_ds'
at
Microsoft.VisualStudio.DeviceConnectivity.ConMan.EnsureGoodDataInProfile(Boolean
overwriteOldVersion)
at Microsoft.VisualStudio.DeviceConnectivity.ConMan.Initialize()
at OpenNetCF.Utils.EmuCpy.LoadAllPlatforms()
at OpenNetCF.Utils.EmuCpy.Main(String[] args)

if someone (Alex in primis) has any clue of what can be, pls let me (us)
know. Have a nice day.
 
Back
Top