Hi,
I have built your code to DLL1.dll, it is all OK
but when I use Sum function in VB it have an error.
My VB code like this:

Private Declare Function Sum Lib "DLL1.DLL" (Byval p_no1 As Integer,Byval p_no2 As Integer) As Integer

Private Sub Command1_Click()
MsgBox Sum(1, 1)
End Sub





and the Error show: Can't find entry point Sum in DLL1.dll

Can you tell me why?
Thank you very much.