есть элементарная прога на VB 6.0 вот код на всякий
Код: Выделить всё
Private Declare Function Group Lib "C:\123\1.dll" Alias "DisplayHelloFromDLL" () As Integer
Private Sub Result_Click()
Dim k As Long, i As Integer
k = Group
MsgBox ("Group::" & Group)
End Sub
вот кстати код этой DLL
Код: Выделить всё
#include <stdio.h>
extern "C"
{
__declspec(dllexport) int DisplayHelloFromDLL()
{
//printf ("Hello from DLL !\n");
int a= 5+3;
return a;
}
__declspec(dllexport) double D(double b)
{
return b+5;
}
}