CVI ships with several DLL examples. Look at ..\CVI\samples\dll\simple\readme.txt. mydll.prj, and simple.prj.
Do you still have a main in your DLL project? CVI DLL's use DllMain instead, but you don't call it directly. Put the code you want to call into another function and export that.
If you're calling your CVI DLL from C++, don't forget to extern "C" everything.
For some more details, look
here.