Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tucson - 13 Mar 2008 19:31 GMT
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
Patrice - 13 Mar 2008 19:58 GMT
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)...

--
Patrice

> According to this article, if using VB FileSystem I/O isn't supported.
> http://msdn2.microsoft.com/en-us/library/t340010s.aspx
[quoted text clipped - 5 lines]
> difference between the 2 when programming in the .NET compact environment?
> Thanks
Family Tree Mike - 13 Mar 2008 19:59 GMT
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.

> According to this article, if using VB FileSystem I/O isn't supported.
> http://msdn2.microsoft.com/en-us/library/t340010s.aspx
[quoted text clipped - 4 lines]
> difference between the 2 when programming in the .NET compact environment?
> Thanks
Peter Duniho - 13 Mar 2008 20:00 GMT
> 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
Cowboy (Gregory A. Beamer) - 14 Mar 2008 02:37 GMT
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.

Signature

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!

*************************************************
> According to this article, if using VB FileSystem I/O isn't supported.
> http://msdn2.microsoft.com/en-us/library/t340010s.aspx
[quoted text clipped - 5 lines]
> difference between the 2 when programming in the .NET compact environment?
> Thanks

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.