Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I always see experienced developers discouraging the use of VB6 functions in .NET whenever there is a .NET equivalent.

 

Now I need to know, is this because we use .NET and thus we are biased to it (Object oriented ...), or truly there is a performance overhead on using VB6...

Dream as if you'll live forever, live as if you'll die today
Posted
Is VisualBasic Dll come together with .NET Framework? Actually I did heard about it will cause the performance issue. Since .NET has equivalent functions, then why not just use .NET functions? Maybe next version of .NET Framework won't cater for VB functions?
Posted

Ok Robby, I read this, the first part I already knew but the second part shocked me (passing parameters) !!!

 

I always thought VB.NET behaved like Java in these issues (Java is my native university language). But this is ridiculious why did Microsoft follow this implementation.

 

Moreover, I have a question. By default objects are passed by reference, even if you explicitly use the Byval keyword, do they follow what is said in the article ? If this is the case then we should avoid at all objects as parameters in VB.NET, and this draws some limitations while programming in VB.NET which I found as powerful as Java but with easier syntax...

 

This is really disappointing ....

Dream as if you'll live forever, live as if you'll die today
  • 2 weeks later...
Posted
Actually all objects are passed ByVal by default, ByRef only if explicitly declared(Opposite to Visual Basic 6). The article points out the stupid method Microsoft used for ByRef but it's ByVal by default, they may have been trying to avoid using pointers since one of the things Microsoft keeps pushing about .Net is that it doesn't use pointers.
.Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...