That's doing it the hard way, but it works. Is this a COM-based .DLL (registered using REGSVR32) or a library .DLL?? COM-based .DLL's you can add a reference to and Visual Studio will automatically generate the wrapper for you, without using the command line to do it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008