I assumed that using __declspec( dllexport ) meant that I wouldn't have to use a .def file (according to msdn anyway!)

However a dll with __declspec( dllexport ) can still not be called from vb without a .def file.

Any ideas why...


From msdn
----------------------------
These attributes explicitly define the DLL's interface to its client, which can be the executable file or another DLL. Declaring functions as dllexport eliminates the need for a module-definition (.DEF) file, at least with respect to the specification of exported functions
-----------------------------