As already stated
Quote:
Originally Posted by »FlutterShy™
C# and VB.Net can do exactly the same.
|
The only difference I remember is the existence of the My-namespace for VB. C# does not have that one, AFAIR. Aside from that, both have full access to the .NET Framework. It's just the look of the code.
VB can load Dlls just like C#
Code:
<DllImport("user32.dll", EntryPoint:="GetWindowText")>
Public Function GetWindowText(ByVal hwnd As Integer, ByVal lpString As System.Text.StringBuilder, ByVal cch As Integer) As Integer
End Function
for reference, C#.
Code:
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
static extern int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount);
A little ugly that you have to write
End Function afterwards, but thats how VB is designed.
Is it useful?
Sure. Due to .NET, its very powerful. The question is, why would you learn two syntactically different .NET Languages?