Quote from: brew on June 01, 2007, 09:37 PM
sure. http://zenixstudios.com/f.php?f=xjskjkpoCode Select
Private Declare Function asdfness Lib "dlltest" (asdf As Integer) As Integer
Private Sub Form_Load()
Dim asdf As Integer
asdf = 5
asdf = asdfness(asdf)
MsgBox asdf
End Sub
extern "C" {
int __declspec(dllexport) asdfness(int asdf) {
int lolz = 0;
lolz = asdf + 3000;
return lolz;
}
}
Coincidentally, the Visual Basic Integer and the C int type are two very different things.