problem with c++ dll called from vb

  • Thread starter Thread starter ned
  • Start date Start date
N

ned

I wrote the following very simple programs to test calling a c++ dll
from visual basic. I'm working in visual studio 7.

*** the .cpp file ...

int __stdcall ver()
{
return 1;

}

*** the .def file ...

LIBRARY
EXPORTS
ver

*** the vb source ...

private declare function ver lib "vcnetdll.dll" () as long
sub form1_load()
msgbox(hex(ver()))
end sub

When I run this I get 10b7f3800000001 instead of just 1. I seem to have
done something to cause me to get back 64 bit values.

Thanks in advance.
 
Back
Top