Question VB DLL in C Sharp

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
3,269
Location
Sydney, Australia
Programming Experience
10+
When you say VB, do you mean VB6 or VB.NET? If it's VB.NET then it's a .NET assembly just like any other, so you simply reference it like you would any other .NET assembly. If you mean VB6, is it a COM component? If so then you reference it just as you would a .NET assembly and an Interop library will be generated, allowing you to treat it pretty much as you would a .NET assembly.
 

Badrinarayanan

New member
Joined
Feb 28, 2012
Messages
2
Programming Experience
Beginner
Ya, I referenced. But still am facing some issues while passing parameters. It is saying that it should be of reference type. Then I tried using the keyword Ref but it didnt happen.
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
3,269
Location
Sydney, Australia
Programming Experience
10+
In short, it means that you need to use a class instance rather than a structure instance. For more than that, you'll have to give us a proper description what you're trying to do and what you're actually doing. Some code might be nice.
 
Top Bottom