none
How to register a legacy typelib (.tlb) on Windows 10? RRS feed

  • Question

  • Hi all,

    I have Visual Studio 2015 running on Windows 10 and need to register a legacy type lib (.tlb). From the posts I've found, regtlibv12.exe is the tool for this. However, I can't find it under C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\ or anywhere else for that matter. Does anyone know how to register .tlb if regtlibv12.exe doesn't exist?

    I've tried regasm /tlb:path but I get errors saying the path cannot be read.

    Any help would be much appreciated.


    • Edited by John_Mun Monday, April 18, 2016 10:06 PM
    Monday, April 18, 2016 10:05 PM

Answers

  • Hi John_Mun,

    >> Does anyone know how to register .tlb if regtlibv12.exe doesn't exist?

    You could also use Tlbimp.exe (Type Library Importer) following below article to register the .tlb file. In my machine, this “Tlbimp.exe” is found in folder “C:\Windows\assembly\NativeImages_v4.0.30319_64\TlbImp\d80a57fe41c981b265fb7d7927783bab”.

    https://msdn.microsoft.com/en-us/library/tt0cf3sx.aspx

    >> I've tried regasm  /tlb:path but I get errors saying the path cannot be read.

    When you use Regasm.exe to register the .tlb file, you should first specify the assembly. As below link shows, the “/tlb [:typeLibFile]” of Regasm.exe is used to generate a type library from the specified assembly containing definitions of the accessible types defined within the assembly, not to register an existing one. For more things, please refer to below link.

    https://msdn.microsoft.com/en-us/library/tzat5yw6.aspx#Anchor_1

    Best Regards,
    Li Wang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, April 19, 2016 8:56 AM