The runtime environment in Visual Studio is usually not the same as your normal command line / desktop Windows environment. Make sure your PATH includes the location of this DLL before starting Visual Studio. Also, in your Project configuration (Project -> Properties -> Debugging), make sure the Environment PATH entry there also include the DLL directory.
Bookmarks