Re: Need tutorials of VB6

  • From: Christopher Coale <ccoale427@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Fri, 22 Jul 2011 13:49:59 -0700

Katherine, the reason Microsoft doesn't write any of the native libraries in C# is because they need it to be exposed to other languages, and other types of software. For the most part, you will see that they don't even use C++ -- they use C. They do this so that other applications can call the C functions. If they had written it in C#, it would not have been able to be called from C or C++ (without invoking the .NET framework). Takes the Windows API (just the Window management API) for example. If they had implemented the "CreateWindow" function in C# instead of C, then no other native application on Windows would have been able to call the "CreateWindow" function.


When they say that C# is capable of lower leveled stuff, they mean that it has the potential to work with lower-leveled code. Microsoft did a proof-of-concept a while back and wrote an educational kernel using purely .NET. The problem with writing device drivers in C# is that it is simply not practical.

There is no "requirement" that you have to use one specific language to write anything. It is merely a matter of common sense. C# is great for applications development. C# is not so great for low-level applications because of its memory management. Yes, you can have unsafe code and use pointers, but it is a hassle to work around the Marshelling services just to say, allocate a chunk of native memory.

Hopefully that cleared some things up.

On 7/22/2011 1:20 PM, Katherine Moss wrote:
You see, that's what I don't get.  If they say (Microsoft, and others), that C# 
is just as capable as C++ for the lower level stuff if you learn the unsafe 
code marking technique in it, then why doesn't C# support all things like MAPI, 
lower-level device drivers, IIS ISAPI filters and extensions, and all other 
things that it is clearly stated require C++?  I mean, if we have Microsoft and 
other C# sites telling us that C# can do the same things, it just seems a bit 
silly to have requirements in another language for some things, right?

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Littlefield, Tyler
Sent: Friday, July 22, 2011 4:11 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: Need tutorials of VB6

c++ is great for lower level. And if you -need- to make calls to win32
(which everything just sort of wraps around anyway), you can use pinvoke
(pinvoke.net)
On 7/22/2011 1:45 PM, Katherine Moss wrote:
I think it's just my feeling that the CLR has been around long enough that it 
should be ahead of everything else in the Windows OS and environment, and that 
lower-level languages like C++ should not have to be a requirement for certain 
things.  Take MAPI, for instance.  I was reading something about that as I was 
briefly interested in trying to help when I get good enough on the existing 
projects there to make open source Outlook Extensions to make it's groupware 
features not be reliant upon Exchange server to make them work.  Take 
HMailServer for instance.  The source is no longer open (though the program is 
still free thankfully for whatever reason), but add-ins are aloud, so why not 
give it some groupware abilities and have it be another alternative to Exchange 
server's  masivity?  But my point is here that if microsoft seems to be pushing 
.net, then why are they still requiring certain languages for certain things?  
You see, this is one of the hopeful things I want to see with Windows 8, that 
.net and Win32 will be peers rather than separate entities in which they can 
only cooperate using interop.  And talk about interop, Microsoft had 
intentionally made MAPI unsupportive of interop.  Why, I wonder?  Sounds like a 
nasty marketing tactic.  I can't prove that, but that was more of an inferred 
thing when reading about it.

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of
Littlefield, Tyler
Sent: Friday, July 22, 2011 3:16 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: Need tutorials of VB6

You've explained what enhancement (since there is only 1) in terms of memory management, 
but you were throwing around "benafits of the CLR,"
when we were talking about native c++, and thus the CLR wouldn't really matter there. 
Oppinions are nice, but what you give generally is misguided information because you've 
developed some overbearing urge toward .net without any actual reasoning behind it beyond 
"x says it's awesome, it must be awesome."
On 7/22/2011 9:18 AM, Katherine Moss wrote:
In terms of facts though, I mean, what facts?  Is not programming, which 
language is better, which language offers enhancements for which user, isn't 
that always going to be an opinion?  I mean, I've been asked before to state 
facts regarding the .net framework's superiority over other programming models. 
 How in the world am I supposed to do that if the only real stuff out there 
saying that it's better are opinions anyway?  So anything I state that's better 
than other models, isn't that an opinion?  And just restating what Microsoft 
has to say regarding their own technology, that's kind of counterproductive, 
isn't it?

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Ken Perry
Sent: Friday, July 22, 2011 11:15 AM
To: programmingblind@xxxxxxxxxxxxx
Subject: RE: Need tutorials of VB6

I know it's hard to say anything sometimes but say it anyway and just ignore 
the rif raf.

Ken

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Katherine
Moss
Sent: Friday, July 22, 2011 10:19 AM
To: programmingblind@xxxxxxxxxxxxx
Subject: RE: Need tutorials of VB6

I was going to say that too, but my presence tends to poison the network, so I 
didn't say anything LOL.

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of
Littlefield, Tyler
Sent: Friday, July 22, 2011 9:55 AM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: Need tutorials of VB6

I recommend you don't learn vb6 if this is your first language, but learn 
something that will help you and is more up-to-date. like vb.net.
On 7/22/2011 7:42 AM, Chetan Sharma wrote:
Hello Friends,
I'm learning Visual Basic 6, There are number of tutorials available
on the Internet, it is hard for me to choose good one.
Can you help me to find good one?
Because, there are many VB experts on the list and they know which
one is better.

With regards,










__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts: