VB6写的界面EXE,引用vc写的Dll.想跟到DLL中函数的代码..无法成功..
如.vb6中
Option Explicit
Private Declare Function intAdd Lib "VcDll.dll" (ByVal a As Integer, ByVal b As Integer) As Integer
Private Sub Form_Load()
Dim c As Integer
c = intAdd(38, 45)
debug.print c
End Sub
VC2008中.
extern "C" int __stdcall intAdd(int a,int b)
{
return a+b;
}