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