Unless it's a .NET assembly, you can't add it as a .NET reference. I imagine you are hitting the "Browse..." button in the "Add Reference" dialog. Note that there are also three tabs in that dialog: .NET, COM, Project. You probably need to switch to the COM dialog and make sure your DLL is registered so you can locate the COM class id in the list of available COM references. Then when you add the reference into a .NET project, Visual Studio will generate a COM interop assembly (in .NET) that talks to the COM dll.
Peter
------------------------------------------------------
Work smarter, not harder.
|