犯了点小错,纠正一下:
Private Function SumTwo Lib "XX.DLL" alias "SumTwo" (a As Integer,b As Integer) As Integer
这一行因为是我手工写的,所以,呵呵。。。写成下面这样子吧:
Private Declare Function SumTwo Lib "XX.DLL" alias "SumTwo" (ByVal a As Integer,ByVal b As Integer) As Integer
如果你的程序用的是C++代码,那么第(二)项的文件名就应该用.CPP