Right now I don't have actual Mobile device and I try to run my project from
Visual Studio 2005 using Mobile 6 Professional Emulator. However, Emulator
cannot see files on my local PC. Do I have to create a Storage Card? I added
files to my project. How can I access them? Thanks a lot.

Re: How can I see data files from a project when use Emulator? by bpbrox

bpbrox
Tue Apr 29 11:42:00 CDT 2008

Nina skrev:
> Right now I don't have actual Mobile device and I try to run my project from
> Visual Studio 2005 using Mobile 6 Professional Emulator. However, Emulator
> cannot see files on my local PC. Do I have to create a Storage Card? I added
> files to my project. How can I access them? Thanks a lot.

You access the files on your local PC in the same way as you would do it
on a real device, - by using some network connection :)

To turn it around: If you could see your local files from the emulator
it would not be a real emulator.

--
Bjørn Brox

Re: How can I see data files from a project when use Emulator? by Ginny

Ginny
Tue Apr 29 11:45:53 CDT 2008

Nina,

Usually the easiest way to get test data onto an emulator is to deploy it
along with your app into the app's folder. You just add the data to your
project in VS and set its build property to Content.

Ginny

"Nina" <Nina@discussions.microsoft.com> wrote in message
news:172C4D19-1A8E-466D-AD66-3FC12B3A719F@microsoft.com...
> Right now I don't have actual Mobile device and I try to run my project
> from
> Visual Studio 2005 using Mobile 6 Professional Emulator. However, Emulator
> cannot see files on my local PC. Do I have to create a Storage Card? I
> added
> files to my project. How can I access them? Thanks a lot.

--

Ginny Caughey
Device Application Development MVP

www.wasteworks.com
Software for Waste Management




Re: How can I see data files from a project when use Emulator? by Nina

Nina
Tue Apr 29 12:29:01 CDT 2008

Thank you, Ginny

In project I added folder â??Dataâ?? with â??Config.datâ?? file. I changed property
of Config.dat file to Content and property of â??Copy to Outputâ?? to â??Copy
alwaysâ??.

Now from the code I try to access that file:

If File.Exists(".\Data\Config.dat") = True Then
MessageBox.Show("File Found")
Else
MessageBox.Show("File Not Found")
End If

I got "File Not Found".
Do I need change Settings for the Emulator? If yes, what it should be?
Thank you, Nina


"Ginny Caughey MVP" wrote:

> Nina,
>
> Usually the easiest way to get test data onto an emulator is to deploy it
> along with your app into the app's folder. You just add the data to your
> project in VS and set its build property to Content.
>
> Ginny
>
> "Nina" <Nina@discussions.microsoft.com> wrote in message
> news:172C4D19-1A8E-466D-AD66-3FC12B3A719F@microsoft.com...
> > Right now I don't have actual Mobile device and I try to run my project
> > from
> > Visual Studio 2005 using Mobile 6 Professional Emulator. However, Emulator
> > cannot see files on my local PC. Do I have to create a Storage Card? I
> > added
> > files to my project. How can I access them? Thanks a lot.
>
> --
>
> Ginny Caughey
> Device Application Development MVP
>
> www.wasteworks.com
> Software for Waste Management
>
>
>

Re: How can I see data files from a project when use Emulator? by Chris

Chris
Tue Apr 29 12:34:08 CDT 2008

Windows CE has no concept of a current directory, so relative paths cannot
be used. Use a fully-qualified path.

--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com



"Nina" <Nina@discussions.microsoft.com> wrote in message
news:1379DD4E-489D-47DD-9EF4-057C4C2115EB@microsoft.com...
> Thank you, Ginny
>
> In project I added folder "Data" with "Config.dat" file. I changed
> property
> of Config.dat file to Content and property of "Copy to Output" to "Copy
> always".
>
> Now from the code I try to access that file:
>
> If File.Exists(".\Data\Config.dat") = True Then
> MessageBox.Show("File Found")
> Else
> MessageBox.Show("File Not Found")
> End If
>
> I got "File Not Found".
> Do I need change Settings for the Emulator? If yes, what it should be?
> Thank you, Nina
>
>
> "Ginny Caughey MVP" wrote:
>
>> Nina,
>>
>> Usually the easiest way to get test data onto an emulator is to deploy it
>> along with your app into the app's folder. You just add the data to your
>> project in VS and set its build property to Content.
>>
>> Ginny
>>
>> "Nina" <Nina@discussions.microsoft.com> wrote in message
>> news:172C4D19-1A8E-466D-AD66-3FC12B3A719F@microsoft.com...
>> > Right now I don't have actual Mobile device and I try to run my project
>> > from
>> > Visual Studio 2005 using Mobile 6 Professional Emulator. However,
>> > Emulator
>> > cannot see files on my local PC. Do I have to create a Storage Card? I
>> > added
>> > files to my project. How can I access them? Thanks a lot.
>>
>> --
>>
>> Ginny Caughey
>> Device Application Development MVP
>>
>> www.wasteworks.com
>> Software for Waste Management
>>
>>
>>



Re: How can I see data files from a project when use Emulator? by Nina

Nina
Tue Apr 29 13:19:01 CDT 2008

I tryed full Path where project located and it doesn't work:

If File.Exists("C:\Nina\Newton\Demo1.0.1\Data\Config.dat") = True Then
MessageBox.Show("File Found")
Else
MessageBox.Show("File Not Found")
End If

Please, any ideas how to make it work. Thank you.

"Chris Tacke, eMVP" wrote:

> Windows CE has no concept of a current directory, so relative paths cannot
> be used. Use a fully-qualified path.
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Giving back to the embedded community
> http://community.OpenNETCF.com
>
>
>
> "Nina" <Nina@discussions.microsoft.com> wrote in message
> news:1379DD4E-489D-47DD-9EF4-057C4C2115EB@microsoft.com...
> > Thank you, Ginny
> >
> > In project I added folder "Data" with "Config.dat" file. I changed
> > property
> > of Config.dat file to Content and property of "Copy to Output" to "Copy
> > always".
> >
> > Now from the code I try to access that file:
> >
> > If File.Exists(".\Data\Config.dat") = True Then
> > MessageBox.Show("File Found")
> > Else
> > MessageBox.Show("File Not Found")
> > End If
> >
> > I got "File Not Found".
> > Do I need change Settings for the Emulator? If yes, what it should be?
> > Thank you, Nina
> >
> >
> > "Ginny Caughey MVP" wrote:
> >
> >> Nina,
> >>
> >> Usually the easiest way to get test data onto an emulator is to deploy it
> >> along with your app into the app's folder. You just add the data to your
> >> project in VS and set its build property to Content.
> >>
> >> Ginny
> >>
> >> "Nina" <Nina@discussions.microsoft.com> wrote in message
> >> news:172C4D19-1A8E-466D-AD66-3FC12B3A719F@microsoft.com...
> >> > Right now I don't have actual Mobile device and I try to run my project
> >> > from
> >> > Visual Studio 2005 using Mobile 6 Professional Emulator. However,
> >> > Emulator
> >> > cannot see files on my local PC. Do I have to create a Storage Card? I
> >> > added
> >> > files to my project. How can I access them? Thanks a lot.
> >>
> >> --
> >>
> >> Ginny Caughey
> >> Device Application Development MVP
> >>
> >> www.wasteworks.com
> >> Software for Waste Management
> >>
> >>
> >>
>
>
>

Re: How can I see data files from a project when use Emulator? by Chris

Chris
Tue Apr 29 13:35:53 CDT 2008

Of course that doesn't work. There is no "C" drive on the CE device. The
emulator can be imagined as a completely separate physical device. It knows
nothing about the host PC or it's file system, just as the PC knows nothing
about the emulator and its file system. If you want to open a file, you
open it "locally" on the emulator. By adding it to the project as Content
and selecting "copy", Studio pushed it down to the device with the
application. Use the file browser on the emulator and you can find it (and
its path).


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com


"Nina" <Nina@discussions.microsoft.com> wrote in message
news:CD876C31-E7D0-41BA-A3C7-C2DE81FCEAB0@microsoft.com...
>I tryed full Path where project located and it doesn't work:
>
> If File.Exists("C:\Nina\Newton\Demo1.0.1\Data\Config.dat") = True Then
> MessageBox.Show("File Found")
> Else
> MessageBox.Show("File Not Found")
> End If
>
> Please, any ideas how to make it work. Thank you.
>
> "Chris Tacke, eMVP" wrote:
>
>> Windows CE has no concept of a current directory, so relative paths
>> cannot
>> be used. Use a fully-qualified path.
>>
>> --
>>
>> Chris Tacke, Embedded MVP
>> OpenNETCF Consulting
>> Giving back to the embedded community
>> http://community.OpenNETCF.com
>>
>>
>>
>> "Nina" <Nina@discussions.microsoft.com> wrote in message
>> news:1379DD4E-489D-47DD-9EF4-057C4C2115EB@microsoft.com...
>> > Thank you, Ginny
>> >
>> > In project I added folder "Data" with "Config.dat" file. I changed
>> > property
>> > of Config.dat file to Content and property of "Copy to Output" to "Copy
>> > always".
>> >
>> > Now from the code I try to access that file:
>> >
>> > If File.Exists(".\Data\Config.dat") = True Then
>> > MessageBox.Show("File Found")
>> > Else
>> > MessageBox.Show("File Not Found")
>> > End If
>> >
>> > I got "File Not Found".
>> > Do I need change Settings for the Emulator? If yes, what it should be?
>> > Thank you, Nina
>> >
>> >
>> > "Ginny Caughey MVP" wrote:
>> >
>> >> Nina,
>> >>
>> >> Usually the easiest way to get test data onto an emulator is to deploy
>> >> it
>> >> along with your app into the app's folder. You just add the data to
>> >> your
>> >> project in VS and set its build property to Content.
>> >>
>> >> Ginny
>> >>
>> >> "Nina" <Nina@discussions.microsoft.com> wrote in message
>> >> news:172C4D19-1A8E-466D-AD66-3FC12B3A719F@microsoft.com...
>> >> > Right now I don't have actual Mobile device and I try to run my
>> >> > project
>> >> > from
>> >> > Visual Studio 2005 using Mobile 6 Professional Emulator. However,
>> >> > Emulator
>> >> > cannot see files on my local PC. Do I have to create a Storage Card?
>> >> > I
>> >> > added
>> >> > files to my project. How can I access them? Thanks a lot.
>> >>
>> >> --
>> >>
>> >> Ginny Caughey
>> >> Device Application Development MVP
>> >>
>> >> www.wasteworks.com
>> >> Software for Waste Management
>> >>
>> >>
>> >>
>>
>>
>>



Re: How can I see data files from a project when use Emulator? by Ginny

Ginny
Tue Apr 29 13:37:42 CDT 2008

Nina,

WindowsCE doesn't have drive letters either. When the file gets desployed,
VS deploys it to the same folder as your app - usually something under
Program Files. So the full path would be something like \Program
Files\YourAppName\config.dat.

Ginny

"Nina" <Nina@discussions.microsoft.com> wrote in message
news:CD876C31-E7D0-41BA-A3C7-C2DE81FCEAB0@microsoft.com...
>I tryed full Path where project located and it doesn't work:
>
> If File.Exists("C:\Nina\Newton\Demo1.0.1\Data\Config.dat") = True Then
> MessageBox.Show("File Found")
> Else
> MessageBox.Show("File Not Found")
> End If
>
> Please, any ideas how to make it work. Thank you.
>
> "Chris Tacke, eMVP" wrote:
>
>> Windows CE has no concept of a current directory, so relative paths
>> cannot
>> be used. Use a fully-qualified path.
>>
>> --
>>
>> Chris Tacke, Embedded MVP
>> OpenNETCF Consulting
>> Giving back to the embedded community
>> http://community.OpenNETCF.com
>>
>>
>>
>> "Nina" <Nina@discussions.microsoft.com> wrote in message
>> news:1379DD4E-489D-47DD-9EF4-057C4C2115EB@microsoft.com...
>> > Thank you, Ginny
>> >
>> > In project I added folder "Data" with "Config.dat" file. I changed
>> > property
>> > of Config.dat file to Content and property of "Copy to Output" to "Copy
>> > always".
>> >
>> > Now from the code I try to access that file:
>> >
>> > If File.Exists(".\Data\Config.dat") = True Then
>> > MessageBox.Show("File Found")
>> > Else
>> > MessageBox.Show("File Not Found")
>> > End If
>> >
>> > I got "File Not Found".
>> > Do I need change Settings for the Emulator? If yes, what it should be?
>> > Thank you, Nina
>> >
>> >
>> > "Ginny Caughey MVP" wrote:
>> >
>> >> Nina,
>> >>
>> >> Usually the easiest way to get test data onto an emulator is to deploy
>> >> it
>> >> along with your app into the app's folder. You just add the data to
>> >> your
>> >> project in VS and set its build property to Content.
>> >>
>> >> Ginny
>> >>
>> >> "Nina" <Nina@discussions.microsoft.com> wrote in message
>> >> news:172C4D19-1A8E-466D-AD66-3FC12B3A719F@microsoft.com...
>> >> > Right now I don't have actual Mobile device and I try to run my
>> >> > project
>> >> > from
>> >> > Visual Studio 2005 using Mobile 6 Professional Emulator. However,
>> >> > Emulator
>> >> > cannot see files on my local PC. Do I have to create a Storage Card?
>> >> > I
>> >> > added
>> >> > files to my project. How can I access them? Thanks a lot.
>> >>
>> >> --
>> >>
>> >> Ginny Caughey
>> >> Device Application Development MVP
>> >>
>> >> www.wasteworks.com
>> >> Software for Waste Management
>> >>
>> >>
>> >>
>>
>>
>>

--

Ginny Caughey
Device Application Development MVP

www.wasteworks.com
Software for Waste Management




Re: How can I see data files from a project when use Emulator? by Nina

Nina
Tue Apr 29 14:23:02 CDT 2008

Thank you. It works.

"Ginny Caughey MVP" wrote:

> Nina,
>
> WindowsCE doesn't have drive letters either. When the file gets desployed,
> VS deploys it to the same folder as your app - usually something under
> Program Files. So the full path would be something like \Program
> Files\YourAppName\config.dat.
>
> Ginny
>
> "Nina" <Nina@discussions.microsoft.com> wrote in message
> news:CD876C31-E7D0-41BA-A3C7-C2DE81FCEAB0@microsoft.com...
> >I tryed full Path where project located and it doesn't work:
> >
> > If File.Exists("C:\Nina\Newton\Demo1.0.1\Data\Config.dat") = True Then
> > MessageBox.Show("File Found")
> > Else
> > MessageBox.Show("File Not Found")
> > End If
> >
> > Please, any ideas how to make it work. Thank you.
> >
> > "Chris Tacke, eMVP" wrote:
> >
> >> Windows CE has no concept of a current directory, so relative paths
> >> cannot
> >> be used. Use a fully-qualified path.
> >>
> >> --
> >>
> >> Chris Tacke, Embedded MVP
> >> OpenNETCF Consulting
> >> Giving back to the embedded community
> >> http://community.OpenNETCF.com
> >>
> >>
> >>
> >> "Nina" <Nina@discussions.microsoft.com> wrote in message
> >> news:1379DD4E-489D-47DD-9EF4-057C4C2115EB@microsoft.com...
> >> > Thank you, Ginny
> >> >
> >> > In project I added folder "Data" with "Config.dat" file. I changed
> >> > property
> >> > of Config.dat file to Content and property of "Copy to Output" to "Copy
> >> > always".
> >> >
> >> > Now from the code I try to access that file:
> >> >
> >> > If File.Exists(".\Data\Config.dat") = True Then
> >> > MessageBox.Show("File Found")
> >> > Else
> >> > MessageBox.Show("File Not Found")
> >> > End If
> >> >
> >> > I got "File Not Found".
> >> > Do I need change Settings for the Emulator? If yes, what it should be?
> >> > Thank you, Nina
> >> >
> >> >
> >> > "Ginny Caughey MVP" wrote:
> >> >
> >> >> Nina,
> >> >>
> >> >> Usually the easiest way to get test data onto an emulator is to deploy
> >> >> it
> >> >> along with your app into the app's folder. You just add the data to
> >> >> your
> >> >> project in VS and set its build property to Content.
> >> >>
> >> >> Ginny
> >> >>
> >> >> "Nina" <Nina@discussions.microsoft.com> wrote in message
> >> >> news:172C4D19-1A8E-466D-AD66-3FC12B3A719F@microsoft.com...
> >> >> > Right now I don't have actual Mobile device and I try to run my
> >> >> > project
> >> >> > from
> >> >> > Visual Studio 2005 using Mobile 6 Professional Emulator. However,
> >> >> > Emulator
> >> >> > cannot see files on my local PC. Do I have to create a Storage Card?
> >> >> > I
> >> >> > added
> >> >> > files to my project. How can I access them? Thanks a lot.
> >> >>
> >> >> --
> >> >>
> >> >> Ginny Caughey
> >> >> Device Application Development MVP
> >> >>
> >> >> www.wasteworks.com
> >> >> Software for Waste Management
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
> --
>
> Ginny Caughey
> Device Application Development MVP
>
> www.wasteworks.com
> Software for Waste Management
>
>
>