.tlb registration problems for using

935 Views Asked by At

Hi I'm trying to register .tlb file but when I run regsvr32 it is giving this error

The Module "name.tlb" may not compatible with the version of windows that you're running.check if the module is compatible with an X86(32-bit) or X64 (64-bit) version of regsvr32.exe

Thanks in advance

1

There are 1 best solutions below

5
On

Regsvr32 requires a dynamic link library with a an entry point of DLLRegisterServer. TLB files are type library files and are not executable code. They are metadata about COM interfaces and types. Regsvr32 cannot register that file because it cannot be loaded as an executable.