Object My.computer under CF 2.0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm developping an application which is supposed to play a music under my
pocketPC. For this development I'm using VS 2005 and compact framework 2.0
beta.
The problem is that the object "My.computer" is not available even if I
include the reference "Microsoft.VisualBasic" in my VS 2005 project.

Any clues???
 
..NETCF v2.0 has only a small subset of the My functionality in the full
framework - this means no My.Computer. However since this is more or less
just a wrapper around functionality found elsewhere in the framework (a kind
of speed dial), then you can probably just resort to using the underlying
functionality. For example My.Computer.FileSystem provides shortcuts into
functionality found in the System.Environment class and System.IO namespace.

My.Computer.FileSystem.GetFiles(somePath)

is equivalent to:-

System.IO.Directory.GetFiles(somePath)

Peter
 
THanks for your answer

Peter Foot said:
..NETCF v2.0 has only a small subset of the My functionality in the full
framework - this means no My.Computer. However since this is more or less
just a wrapper around functionality found elsewhere in the framework (a kind
of speed dial), then you can probably just resort to using the underlying
functionality. For example My.Computer.FileSystem provides shortcuts into
functionality found in the System.Environment class and System.IO namespace.

My.Computer.FileSystem.GetFiles(somePath)

is equivalent to:-

System.IO.Directory.GetFiles(somePath)

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top