2

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.

John M.
  • 2,642
  • 7
  • 26
  • 55
  • What Is a XY question? – sergiol Jun 04 '16 at 08:55
  • This post covers the case of the missing regtlibv12.exe file on Windows 8 in detail and should apply to Windows 10 as well: http://stackoverflow.com/a/12770517/1339945. – evophage May 19 '17 at 03:52
  • I don't think this really is a duplicate of the question. Anyway I got round it in a completely different way. Open Access or Excel create a VBA module. Tools->References. Browse to your tlb and select it. It wil register it so anything can use it. – Rob Sedgwick Sep 06 '20 at 11:25

1 Answers1

0

You need to get the old regtlibv12.exe from an older machine.

I upgraded to Windows 10 and lost the function but found it here: C:\Windows.old\Windows\Microsoft.NET\Framework\v4.0.30319

works fine.