VWrestle97
asked on
Can you give me an example of how much easier VB is than C#?
I hear all the time that VB is easier than C#, but when I see the code... it basically looks the same. I mean... don't you have to do the same amount of work.
I want to build a windows form application that will calculate the inertial properties of different geometric shapes and display then in 3D. How would using VB.net be a better choice than C# for this type of application? I mean.... is there code that I can get done more easily with VB than with C#?
VWrestle97
I want to build a windows form application that will calculate the inertial properties of different geometric shapes and display then in 3D. How would using VB.net be a better choice than C# for this type of application? I mean.... is there code that I can get done more easily with VB than with C#?
VWrestle97
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The flip side of this is that if you also do some VBA, it is nice to keep some separation. Stick to C# for your .NET, and then you won't get the VBA and the VB.NET confused. There are arguments both ways.
ASKER
great guys!
You make me feel better about leaning toward C#!
I was also wondering if one language has more support than the other in terms of getting coding examples... or do they both have the same amount of coding examples?
You make me feel better about leaning toward C#!
I was also wondering if one language has more support than the other in terms of getting coding examples... or do they both have the same amount of coding examples?
ASKER
IM,
I thought that C or C++ language (especially pointers) can be avoided if I use Direct3D with C# to do my 3D graphics?
VWrestle97
I thought that C or C++ language (especially pointers) can be avoided if I use Direct3D with C# to do my 3D graphics?
VWrestle97
the thing about .NET is the code can easily go back and forth between C# and VB.NET because its all based on the same framework.
ASKER
BrianGEFF719,
do you mean that I can combine C# classes with VB.net classes to make up one program?
do you mean that I can combine C# classes with VB.net classes to make up one program?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
silaupaura,
I am sorry that I never really new what a dll is. How is a dll generated and How would you access the dll so that I can reference it in another program?
VWrestle97
I am sorry that I never really new what a dll is. How is a dll generated and How would you access the dll so that I can reference it in another program?
VWrestle97
OK, so let me start like that
say u are using C#.NET.
1. go to explorer bar, right click references and click 'add reference'
2. All the available dll (Dynamic Link Libraries) will be listed there.
3. Select any one of dll and click ok.
4. Now in the class where u want to use the functions of that dll, import it by writing following line :
using <dll_name>
which is just like:
using System.Windows.Forms.Forms because these are also dlls.
now for using functions of the dll :
make instance of class like
dll_name_that_u_added.clas sName clsObj = new dll_name_that_u_added.clas sName()
clsObj.functionName( parameters)
that's it.
NOTE: here dll_that_u_added may be written in VB.NET, C#.NET or VC++.NET
say u are using C#.NET.
1. go to explorer bar, right click references and click 'add reference'
2. All the available dll (Dynamic Link Libraries) will be listed there.
3. Select any one of dll and click ok.
4. Now in the class where u want to use the functions of that dll, import it by writing following line :
using <dll_name>
which is just like:
using System.Windows.Forms.Forms
now for using functions of the dll :
make instance of class like
dll_name_that_u_added.clas
clsObj.functionName( parameters)
that's it.
NOTE: here dll_that_u_added may be written in VB.NET, C#.NET or VC++.NET