I'm fairly sure you can't write Win32 dlls in VB.Net. You can write COM dlls, so I'm not sure why that wouldn't be working, as you don't use .def files with COM dlls.