problem with c++ dll called from vb

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top