473,405 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Creating DLL in VB.net

cvh
Hello,

How would I take this class and build a DLL from it?

Class PrClass

Public aPrNummer As Integer

Public aPrBarcode As String

Public aPrPma As Integer

Public aPrVaMaNr As Integer

Public aPrToMaNr As Integer

Sub New(ByVal Prnummer As Integer, ByVal PrBarcode As String, ByVal PrPma As
Integer, _

ByVal PrVaMaNr As Integer, ByVal PrToMaNr As Integer)

aPrNummer = Prnummer

aPrBarcode = PrBarcode

aPrPma = PrPma

aPrVaMaNr = PrVaMaNr

aPrToMaNr = PrToMaNr

End Sub

Public Overrides Function ToString() As String

Return CStr(aPrNummer) + _

";" + aPrBarcode + _

";" + CStr(aPrPma) + _

";" + CStr(aPrVaMaNr) + _

";" + CStr(aPrToMaNr) + _

";"

End Function
Jul 21 '05 #1
7 3225
Hi,

You must create a new project - Class Library

--
Regards,
Peter Jausovec
(http://blog.jausovec.net)
"cvh" <Ch***@nomail.com> je napisal v sporočilo
news:el**************@TK2MSFTNGP09.phx.gbl ...
Hello,

How would I take this class and build a DLL from it?

Class PrClass

Public aPrNummer As Integer

Public aPrBarcode As String

Public aPrPma As Integer

Public aPrVaMaNr As Integer

Public aPrToMaNr As Integer

Sub New(ByVal Prnummer As Integer, ByVal PrBarcode As String, ByVal PrPma
As Integer, _

ByVal PrVaMaNr As Integer, ByVal PrToMaNr As Integer)

aPrNummer = Prnummer

aPrBarcode = PrBarcode

aPrPma = PrPma

aPrVaMaNr = PrVaMaNr

aPrToMaNr = PrToMaNr

End Sub

Public Overrides Function ToString() As String

Return CStr(aPrNummer) + _

";" + aPrBarcode + _

";" + CStr(aPrPma) + _

";" + CStr(aPrVaMaNr) + _

";" + CStr(aPrToMaNr) + _

";"

End Function

Jul 21 '05 #2
Start a new class library project instead of a windows application project.

Chris

"cvh" <Ch***@nomail.com> wrote in message
news:el**************@TK2MSFTNGP09.phx.gbl...
Hello,

How would I take this class and build a DLL from it?

Class PrClass

Public aPrNummer As Integer

Public aPrBarcode As String

Public aPrPma As Integer

Public aPrVaMaNr As Integer

Public aPrToMaNr As Integer

Sub New(ByVal Prnummer As Integer, ByVal PrBarcode As String, ByVal PrPma
As Integer, _

ByVal PrVaMaNr As Integer, ByVal PrToMaNr As Integer)

aPrNummer = Prnummer

aPrBarcode = PrBarcode

aPrPma = PrPma

aPrVaMaNr = PrVaMaNr

aPrToMaNr = PrToMaNr

End Sub

Public Overrides Function ToString() As String

Return CStr(aPrNummer) + _

";" + aPrBarcode + _

";" + CStr(aPrPma) + _

";" + CStr(aPrVaMaNr) + _

";" + CStr(aPrToMaNr) + _

";"

End Function

Jul 21 '05 #3
cvh
And how do I build the Dll?

Do I need export the functions?
"Peter Jausovec" <pe***@jausovec.net> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Hi,

You must create a new project - Class Library

--
Regards,
Peter Jausovec
(http://blog.jausovec.net)
"cvh" <Ch***@nomail.com> je napisal v sporočilo
news:el**************@TK2MSFTNGP09.phx.gbl ...
Hello,

How would I take this class and build a DLL from it?

Class PrClass

Public aPrNummer As Integer

Public aPrBarcode As String

Public aPrPma As Integer

Public aPrVaMaNr As Integer

Public aPrToMaNr As Integer

Sub New(ByVal Prnummer As Integer, ByVal PrBarcode As String, ByVal PrPma
As Integer, _

ByVal PrVaMaNr As Integer, ByVal PrToMaNr As Integer)

aPrNummer = Prnummer

aPrBarcode = PrBarcode

aPrPma = PrPma

aPrVaMaNr = PrVaMaNr

aPrToMaNr = PrToMaNr

End Sub

Public Overrides Function ToString() As String

Return CStr(aPrNummer) + _

";" + aPrBarcode + _

";" + CStr(aPrPma) + _

";" + CStr(aPrVaMaNr) + _

";" + CStr(aPrToMaNr) + _

";"

End Function


Jul 21 '05 #4
First, if that's all you want to do, I would recommend creating a Structure,
rather than a Class. Second, you should use the & for concatenation instead
of +. Third, instead of CStr(), you should use CType(currentObj, newType).

As for your main question, are you using Visual Studio.NET? If so, just go
to the Build menu and build your solution. If not, you'll need to use the
Visual Basic compiler (vbc.exe) at the command prompt. Type vbc /? to get a
list of all the compiler switches you can use.
"cvh" <Ch***@nomail.com> wrote in message
news:el**************@TK2MSFTNGP09.phx.gbl...
Hello,

How would I take this class and build a DLL from it?

Class PrClass

Public aPrNummer As Integer

Public aPrBarcode As String

Public aPrPma As Integer

Public aPrVaMaNr As Integer

Public aPrToMaNr As Integer

Sub New(ByVal Prnummer As Integer, ByVal PrBarcode As String, ByVal PrPma
As Integer, _

ByVal PrVaMaNr As Integer, ByVal PrToMaNr As Integer)

aPrNummer = Prnummer

aPrBarcode = PrBarcode

aPrPma = PrPma

aPrVaMaNr = PrVaMaNr

aPrToMaNr = PrToMaNr

End Sub

Public Overrides Function ToString() As String

Return CStr(aPrNummer) + _

";" + aPrBarcode + _

";" + CStr(aPrPma) + _

";" + CStr(aPrVaMaNr) + _

";" + CStr(aPrToMaNr) + _

";"

End Function

Jul 21 '05 #5
Just build it like you would any other project. The dll will be in the bin
folder.

Chris

"cvh" <Ch***@nomail.com> wrote in message
news:uC**************@TK2MSFTNGP09.phx.gbl...
And how do I build the Dll?

Do I need export the functions?
"Peter Jausovec" <pe***@jausovec.net> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Hi,

You must create a new project - Class Library

--
Regards,
Peter Jausovec
(http://blog.jausovec.net)
"cvh" <Ch***@nomail.com> je napisal v sporočilo
news:el**************@TK2MSFTNGP09.phx.gbl ...
Hello,

How would I take this class and build a DLL from it?

Class PrClass

Public aPrNummer As Integer

Public aPrBarcode As String

Public aPrPma As Integer

Public aPrVaMaNr As Integer

Public aPrToMaNr As Integer

Sub New(ByVal Prnummer As Integer, ByVal PrBarcode As String, ByVal
PrPma As Integer, _

ByVal PrVaMaNr As Integer, ByVal PrToMaNr As Integer)

aPrNummer = Prnummer

aPrBarcode = PrBarcode

aPrPma = PrPma

aPrVaMaNr = PrVaMaNr

aPrToMaNr = PrToMaNr

End Sub

Public Overrides Function ToString() As String

Return CStr(aPrNummer) + _

";" + aPrBarcode + _

";" + CStr(aPrPma) + _

";" + CStr(aPrVaMaNr) + _

";" + CStr(aPrToMaNr) + _

";"

End Function



Jul 21 '05 #6
There is no need to export any functions

--
Regards,
Peter Jausovec
(http://blog.jausovec.net)
"cvh" <Ch***@nomail.com> je napisal v sporočilo
news:uC**************@TK2MSFTNGP09.phx.gbl ...
And how do I build the Dll?

Do I need export the functions?
"Peter Jausovec" <pe***@jausovec.net> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Hi,

You must create a new project - Class Library

--
Regards,
Peter Jausovec
(http://blog.jausovec.net)
"cvh" <Ch***@nomail.com> je napisal v sporočilo
news:el**************@TK2MSFTNGP09.phx.gbl ...
Hello,

How would I take this class and build a DLL from it?

Class PrClass

Public aPrNummer As Integer

Public aPrBarcode As String

Public aPrPma As Integer

Public aPrVaMaNr As Integer

Public aPrToMaNr As Integer

Sub New(ByVal Prnummer As Integer, ByVal PrBarcode As String, ByVal
PrPma As Integer, _

ByVal PrVaMaNr As Integer, ByVal PrToMaNr As Integer)

aPrNummer = Prnummer

aPrBarcode = PrBarcode

aPrPma = PrPma

aPrVaMaNr = PrVaMaNr

aPrToMaNr = PrToMaNr

End Sub

Public Overrides Function ToString() As String

Return CStr(aPrNummer) + _

";" + aPrBarcode + _

";" + CStr(aPrPma) + _

";" + CStr(aPrVaMaNr) + _

";" + CStr(aPrToMaNr) + _

";"

End Function



Jul 21 '05 #7
cvh
Thanks for the help guys.
"cvh" <Ch***@nomail.com> wrote in message
news:el**************@TK2MSFTNGP09.phx.gbl...
Hello,

How would I take this class and build a DLL from it?

Class PrClass

Public aPrNummer As Integer

Public aPrBarcode As String

Public aPrPma As Integer

Public aPrVaMaNr As Integer

Public aPrToMaNr As Integer

Sub New(ByVal Prnummer As Integer, ByVal PrBarcode As String, ByVal PrPma
As Integer, _

ByVal PrVaMaNr As Integer, ByVal PrToMaNr As Integer)

aPrNummer = Prnummer

aPrBarcode = PrBarcode

aPrPma = PrPma

aPrVaMaNr = PrVaMaNr

aPrToMaNr = PrToMaNr

End Sub

Public Overrides Function ToString() As String

Return CStr(aPrNummer) + _

";" + aPrBarcode + _

";" + CStr(aPrPma) + _

";" + CStr(aPrVaMaNr) + _

";" + CStr(aPrToMaNr) + _

";"

End Function

Jul 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: rdsteph | last post by:
Python411 is a series of podcasts about Python, aimed at hobbyists and others who are learning Python. Each episode focuses on one aspect of learning Python, or one kind of Python programming, and...
6
by: owen | last post by:
Generally speaking, what does it mean when I see a "button" with red text showing this message instead of the control I've dragged onto the web form in Design View.? (But the page works fine at...
2
by: Pawan | last post by:
Hi Guys, I have this current assignment where I have to develop online forms for local municipal authorities. I have to use adobe acrobat to create online forms from PDFs (which I have never done...
15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
2
by: LIN | last post by:
Hello, Greetings. I am creating a web site which will contain lot of articles. I had been planning to create simple HTML page on the server everytime i posted a article (eg. article12.html )....
2
by: Patrick | last post by:
I want to define a set of web-form templates in XML and render the equivalent web-form with ASP.NET, then process any input server controls on the form. Reading the XML file from Page_load is...
0
by: Ravi Ambros Wallau | last post by:
Hi: I've created a custom control - a grid that uses Infragistics to display some filters, the grid itself, and some buttons. Well, when using this control directly on WebForm, everything works...
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
9
by: =?Utf-8?B?YmJn?= | last post by:
Hi all, I read somewhere "using kernel stuff in thread is not good.." if ManualResetEvent object is created in thread but not actually used, will it affect performance? Bob
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.