If you don't want to make your DLL a COM object, you can leave it as an ordinary C dll, and export the functions you want to call. The MS documentation says you can use the compiler pragma __declspec(dllexport), but it doesn't work when called by VB. You must use the old-school way of declaring your function as WINAPI, and including the function name in a .DEF file you make part of your VC++ project.
Chip H.