How to use a C# class through VB.NET
-
hi, i really need to know the solution to this problem as soon as possible!!! i have to use a class written in C# through VB.NET for my project. the C# class contains all image procesing methods i need, and the rest of the project is in VB.NET!! i would really appreciate any help as soon as possible. thanx in advance!!! ☺«««DTA»»»☺
-
hi, i really need to know the solution to this problem as soon as possible!!! i have to use a class written in C# through VB.NET for my project. the C# class contains all image procesing methods i need, and the rest of the project is in VB.NET!! i would really appreciate any help as soon as possible. thanx in advance!!! ☺«««DTA»»»☺
azam316 wrote: i have to use a class written in C# through VB.NET for my project. Just add a new C# Class Library project to your existing solution. This new project will be compiled to a DLL. Then reference the C# project in your VB.NET project (also remember to check the project dependencies). Of course you could also first compile the C# sources to a DLL and then reference the compiled DLL. But using a multi-project solution has the advantage of enabling you to quickly change the C# sources if necessary. For more details see Managing Solutions, Projects, and Files[^] (in particular Multi-Project Solutions[^]). Best regards Dennis
-
azam316 wrote: i have to use a class written in C# through VB.NET for my project. Just add a new C# Class Library project to your existing solution. This new project will be compiled to a DLL. Then reference the C# project in your VB.NET project (also remember to check the project dependencies). Of course you could also first compile the C# sources to a DLL and then reference the compiled DLL. But using a multi-project solution has the advantage of enabling you to quickly change the C# sources if necessary. For more details see Managing Solutions, Projects, and Files[^] (in particular Multi-Project Solutions[^]). Best regards Dennis