|
-
Apr 30th, 2003, 04:05 AM
#1
Thread Starter
New Member
Compiling an VB.NET comprising Window Application & Class Library
Hi,
I have made a simple program of adding two numbers where i have defined the formula as a Function in the Class library Template.
And
am calling the Function from a Windows Application Template.
When i am debugging the program the error is "A project with an output type of class library cannot be started directly".
The code is as Below
Class Library Template
NAme of the file is Addittion.vb
------------------------------------------------------------------------------
Namespace BondF
Public Class Add
Public Function Add(ByVal a As Double, ByVal b As Double) As Double
Add = a+ b
End Function
End Class
End Namespace
-------------------------------------------------------------------------------
Windows Application Template
-------------------------------------------------------------------------------
Dim Sum as Double
Sum = Addittion.Add(1.1,2.1)
Msgbox(Sum)
-------------------------------------------------------------------------------
Is there any online material explaining the intricacies of working with Class Library Template ?
Thanx In Advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|