In this example, we will regenerate the vislib.dll file into a .NET version. This is done by using the Type Library Import tool provided with the framework.
Go to a command prompt and navigate to C:\Program Files\Microsoft.NET\SDK\v1.1\Bin. Inside that folder, there is an application called tlbimp.exe. We are going to use that. So, type:
tlbimp "C:\Program Files\Microsoft Office\Visio11\VISLIB.dll" /out:"C:\VisioDotNet.dll" /namespace:VisioDotNet /asmversion:11.0.3216.0 In this example, we are generating a new .dll in the C: root called VisioDotNet.dll. We are using VisioDotNot as the namespace as well. Also, just so we know what version of Visio we are using, I looked up the version of the VISLIB.dll file and used that as the assembly version. In this case it was 11.0.3216.0. Now we have the VisioDotNet library for our project. |