.NET Compact Framework - Better with C#, not VB?

T

tucson

According to this article, if using VB FileSystem I/O isn't supported.
http://msdn2.microsoft.com/en-us/library/t340010s.aspx
Does this mean that if using C# it is supported? Or does it only mention VB
but it applies to all languages?

Also, all the links on this page only refers to VB, not C#. Is there a
difference between the 2 when programming in the .NET compact environment?
Thanks
 
P

Patrice

Not sure but the article looks quite clear to me.

What is not included are VB specific libraries that are providing
compatibility with earlier VB releases or a simplified experience in some
areas...

It means that you'll have just to use .NET libraries instead of VB specific
librairies (that are not included to save space and that anyway are
duplictaing existing capabilities)...
 
F

Family Tree Mike

The reference says the FileSystem namespace is not supported. The FileSystem
namespace is fully quallified as Microsoft.VisualBasic.FileSystem. I don't
think that could be used easily, if at all, from C#. This just means you
need to use the System.IO.* classes and namespaces.
 
P

Peter Duniho

According to this article, if using VB FileSystem I/O isn't supported.
http://msdn2.microsoft.com/en-us/library/t340010s.aspx
Does this mean that if using C# it is supported? Or does it only mention
VB
but it applies to all languages?

If you click on the link that takes you to the summary of the things that
are not supported, you'll see that all of the items are
language-specific. That is, they are things that are defined by the
language, rather than .NET.
Also, all the links on this page only refers to VB, not C#. Is there a
difference between the 2 when programming in the .NET compact
environment?

The main difference is that the VB language includes built-in
functionality that isn't supported on the CF. C# doesn't have any of its
own i/o features, but instead relies entirely on the .NET Framework. So
there's nothing in C# that would have been left out; C# didn't have the
features that were left out of VB for the CF in the first place.

I would say that if anything, it appears to me that when using the CF,
programming in VB is a lot _more_ like C#, since you are forced to use the
..NET features rather than the language's built-in features. This is a
normal state of affairs in C#, even when not specifically targeting the CF.

For more specific help, you may want to post to the Compact Framework
newsgroup, since that seems more directly applicable to your question.

Pete
 
C

Cowboy \(Gregory A. Beamer\)

Use the framework bits instead of the language specific training wheels and
you should be fine. VB has a lot of shortcuts that you cannot use. That is
what it is saying.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

*************************************************
| Think outside the box!
|
*************************************************
 

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

Top