Questions tagged [tlbimp]

The Type Library Importer is a Microsoft tool that converts the type definitions found within a COM type library into equivalent definitions in a common language runtime assembly.

The output of the Type Library Importer (tlbimp.exe) is a binary file (an assembly) that contains runtime metadata for the types defined within the original type library.

COM type definitions usually reside in a type library. In contrast, CLS-compliant compilers produce type metadata in an assembly. The two sources of type information are quite different. The Type Library Importer is used for generating metadata from a type library. The resulting assembly is called an interop assembly, and the type information it contains enables .NET Framework applications to use COM types.

More information is availabe on MSDN, including a guide on how to use it.

91 questions
0
votes
1 answer

RegServer on CATIA start (without privileges)

We have CATIA R18-R24 available on a network drive, where every designer can start it. The problem is, that the VB.Net COM interface does not know the Type Libraries of the started version. To run the RegServer (to register the tlb for the correct…
Andreas Freitag
  • 357
  • 1
  • 7
  • 20
0
votes
1 answer

How do I avoid TlbImp.exe error TI1021 when creating PIA?

A few weeks ago, I ran this without any errors (just the normal warning): tlbimp TypeLibrary.tlb /primary /out:My.Made.Up.Name.dll Since then, I've run Windows Update (to get several months of updates). But now, when I run the same command: tlbimp…
ThunderFrame
  • 9,352
  • 2
  • 29
  • 60
0
votes
1 answer

off-site build of C# / COM solution possible?

I work on an integration server and now I would like to build a C#.NET 4.5 solution which refers to a COM library. The COM object is NOT installed on the CI machine. I have a .tlb file at hand. I have already created the .dll using tlbimp.exe and…
0
votes
0 answers

How to solve TlbImp : error TI0000

I am trying to add a reference to a 3rd party DLL. but was having same problem as Here. So Now I am trying to validate the DLL using TlbImp.exe but this approach gives me New error; TlbImp : error TI0000 : The input file 'C:\Program Files …
deathrace
  • 908
  • 4
  • 22
  • 48
0
votes
0 answers

tlbimp doesn't generate wrappers for interfaces are not included in 'library' section

I am trying to create COM wrapper class for a COM library. I first used MIDL to compile the .IDL into .TLB, then used TlbImp to generate a managed wrapper assembly. However, I found some of the interfaces are not included in the managed wrapper, the…
codewarrior
  • 723
  • 7
  • 22
0
votes
1 answer

Why do I get an extra GUID type definition when compiling and importing bits.idl?

I'm writing some .NET code against the COM BITS API. I found the bits.idl file under windows kits, and did midl bits.idl, which gave me bits.tlb. I then ran tlbimp bits.tlb and got BackgroundCopyManager.dll. Everything is as expected in this…
Jay Carlton
  • 1,118
  • 1
  • 11
  • 27
0
votes
1 answer

Unable to sign an imported msi.dll assembly using tlbimp

This seems so trivial, yet I can't get it to work.. I have an msi.dll wrapper (named Interop.WindowsInstaller.dll) which I need to sign. The way to do it is by signing it upon import (this specific case is even documented in MSDN:…
AVIDeveloper
  • 2,954
  • 1
  • 25
  • 32
0
votes
1 answer

TlbImp not working

I have a dll given by a vendor that 4.0 framework and I am on 3.5. I was told by the vendor that the dll exposes the com interface so I should still be able to use it. I have both a .dll and .tlb file. After doing some research I tried using…
user3646105
  • 2,459
  • 4
  • 14
  • 18
0
votes
1 answer

"dynamic" return type present when using TLBIMP to generate interop assembly

I have a COM control that has a MyCOMCtl class having Data property which is available as get_Data in the generated COM Interop assembly. Two different interop assemblies are generated for this COM control: By adding the COM control in VS2010, an…
A9S6
  • 6,575
  • 10
  • 50
  • 82
0
votes
1 answer

TlbImp error TI1036 failed to import SAFEARRAY(float)

I have a idl which contains a simple interface definition: library DecoToniCfgLib { importlib("stdole32.tlb"); //....code //....code [ object, uuid(A6F30650-53F5-4688-829A-C084BA1C7DC0), dual, nonextensible, …
Barzo
  • 1,039
  • 1
  • 11
  • 37
0
votes
1 answer

How do I generate a PowerShell-compatible version of a COM assembly using TLBImp.exe?

I'm doing some work with MSMQ Triggers and Rules from PowerShell, and I'm having an issue. I know that the only way to access triggers/rules programmatically is to leverage the mqtrig.dll assembly, and my research has indicated that I have to run…
Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
0
votes
2 answers

Importing static COM modules such as WriteProfileString

I have a legacy VB 6 application that uses WriteProfileString which is provided only for compatibility with 16-bit versions of Windows. I'm migrating it into a functional equivalent (that means an exact clone) .NET application. This requires me…
the_drow
  • 18,571
  • 25
  • 126
  • 193
0
votes
1 answer

Attachmate Windows XP and Windows 7 cannot add EXTRACOM.tlb

A .NET 2.0 project has a reference to an Windows XP which was using "EXTRA" , but with Windows 7 , The Attachmate software is using Attachmate Reflection , and It seems that people are told to get rid of "EXTRA" and replace with "EXTRACOM" I'm…
Tom Stickel
  • 19,633
  • 6
  • 111
  • 113
0
votes
0 answers

COM OLE_HANDLE type mismatch in generated C# interop DLL

I have inherited a Microsoft Visual C++ COM project which is a dependency of a core C# application I work with. When recompiling the project and regenerating the interop DLL (using tlbimp), several methods in my library that take in an OLE_HANDLE…
Henry Thacker
  • 63
  • 1
  • 5
0
votes
1 answer

using classes inside a COM exe from .Net

I have a .exe file I've been given which has COM classes inside it -- these are from C++, not .net ComVisible types I'd like to use those classes inside my .net project, but I can't add a reference to the exe; when I try I get DIALOG BOX:…
Steve Cooper
  • 20,542
  • 15
  • 71
  • 88