Create a dll

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am new to .net, but I have been pogramming in VB 6 for 4 years. I am trying to create a dll in VB.net. I have created them in vb6.0 before with the ActiveX DLL. I created a new Class Libary. I wrote the code. Do I just goto Build...Build Solutions and then the dll is under the bin folder? I did that, but when I try to use that dll, I get "can't add a reference to the specified file." Are there properties that I need to set? Any help would be greatly appreciated. Here is the sample code that I wrote
Public Class Class
Public Property Test() As Strin
Ge
Return clTes
End Ge
Set(ByVal Value As String
clTest = Valu
End Se
End Propert

Private clTest As Strin
End Class
 
* "=?Utf-8?B?UGF0cmljaw==?= said:
I am new to .net, but I have been pogramming in VB 6 for 4 years. I am trying to create a dll in VB.net. I have created them in vb6.0 before with the ActiveX DLL. I created a new Class Libary. I wrote the code. Do I just goto Build...Build Solutions and then the dll is under the bin folder? I did that, but when I try to use that dll, I get "can't add a reference to the specified file." Are there properties that I need to set? Any help would be greatly appreciated. Here is the sample code that I wrote:

Are you trying to reference the DLL by your VB6 project? You will have
to do some changes in the project options:

<URL:http://dotnet.mvps.org/dotnet/samples/codingtechnique/downloads/MyComLib.zip>
 
Back
Top