Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Actually we are working on a project. Some guys are good in C# some in vb so is it possible we code our modules in different langs and can call functions of each other?
If so how?
Posted
Updated 6-Aug-11 19:10pm
v2

Yes. In VS2010 you can have projects of multiple language types in the same solution. In all versions you can create binaries in one language and reference them from another.

Cheers.
 
Share this answer
 
Comments
Dalek Dave 4-Aug-11 11:23am    
True!
Yes of course. That's the whole idea behind .NET. The easiest way is to write your code and compile them to Class Libraries. You can then consume this library from your client code. For example, you can write code in VB.NET and compile it into a Class Library. You can then write a Windows application in C# and use the functions from the Class Library in your windows app.
 
Share this answer
 
Comments
Dalek Dave 4-Aug-11 11:23am    
Spot on.
Yes. Put your code into a DLL and have them reference it (or vice versa).

This was a main reason I refused to take a job somewhere. The main 'senior' programmers used VB and knew I was a C# programmer. They asked me if I would be OK with not using C# anymore.
I asked a few follow up questions and they clearly did not understand what .Net really was
 
Share this answer
 
 
Share this answer
 
Yes it is. I made a C# .NET Class library which was COM Visible that was used in both VS6 C++ and a VS6 VB program. So there is a possibility of going to something that doesn't use the .NET framework too!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900