The Type Library Exporter (Tlbexp.exe) is a tool automatically installed with Visual Studio, which generates a type library that describes the types defined in a common language runtime assembly.
Questions tagged [tlbexp]
18 questions
9
votes
2 answers
TlbExp.exe error:This assembly is built by a runtime newer
We are moving part of our server to .net 4.0. We already did the move to Vs2010 as a first step but did not change the target framework of any project.
As a second step I'm moving a specific part of our server to target 4.0 so we can use some of the…

Escristian
- 93
- 1
- 1
- 4
9
votes
2 answers
.NET Core 2.1 - How to create COM object and generate *.tlb file
I would like to build COM object in .net Core and then register by RegAsm.
My .csproj file:
Exe
netcoreapp2.1;net4.7.2
…

Wojciech Nagórski
- 648
- 8
- 18
7
votes
1 answer
COM class visibility: C# to VB6
I have a C# .Net 4.0 Application on the one hand and on the other a VB6 App. I created a COM Interface by making the Project COM Visible and actived register COM Interop.
I Tested the COM interface by implementing a C# Application wich imports the…

Markus
- 1,465
- 4
- 18
- 29
7
votes
2 answers
How to Register a Type Library without RegAsm.exe
I want to know if it's possible to register a type library without using the RegAsm tool. Here is my situation, which will hopefully explain why I want to do this:
I'm developing an assembly in .NET that will provide some modern functionality for…

Kyle Gagnet
- 2,294
- 2
- 20
- 27
5
votes
2 answers
Using tlbexp.exe on a COM dll
I am trying to set up communication between Centura and a COM .dll. (Downloaded from http://download.resip.fr for a database import)
Centura requires a .tlb file to be able to communicate to this component. Normally I would use regasm /tlb to…

Starceaker
- 631
- 2
- 5
- 14
5
votes
1 answer
tlbexp.exe changes method names' case
I have a rather strange problem.
I am exporting an interface from a C# library to COM.
I have enabled the 'register with COM' project setting, so it calls tlbexp.exe to make the type libs.
We use camel case on our method names and I noticed that the…

ljbade
- 4,576
- 4
- 30
- 35
2
votes
1 answer
COM Interface question - .NET
Recently I was reading about interop marshalling but I still don't understand one thing. To make .NET assembly visible to COM I need to use tlbexp tool and/or regasm tool. To make COM visible to .NET assebly I have to use tlbimp tool - all that is…

pkolodziej
- 1,347
- 3
- 17
- 24
2
votes
1 answer
Properties get renamed when their name is the same as the datatype they return
I am facing the following problem:
My interfaces are defined in C#. I use custom enums in my interfaces. Some of the enums have the same name as the datatype they return, e.g.:
Foo Foo { get; }
Bar Bar { get; }
I use tlbexp to use the module in…

christian.s
- 437
- 6
- 17
1
vote
1 answer
What is the path for tblexp in a .NET core project?
I'm trying to export a TLB file for a F# DLL. For .NET Framework up to 4.8 the following custom build command works:

jsparkes
- 161
- 1
- 11
1
vote
1 answer
Properties of C# structs get unusable names in COM and VB6?
My C# code has a struct which I am exporting to COM. The properties of this struct are coming through with strange names that aren't even valid syntax in VB6, so they cannot be accessed.
Is there some way to get these to export with normal, usable…

StayOnTarget
- 11,743
- 10
- 52
- 81
1
vote
1 answer
Which features of .NET framework do interop assemblies reference?
We have a Visual Studio solution with about 90 projects. Most of them are built to DLL files, some are written in C++, others in C#. The projects communicate with each other via COM. We use tlbexp to generate TLB files of some C# projects (the ones…

Paul H
- 600
- 1
- 5
- 13
1
vote
1 answer
Why isn't there an AutoUnknown value in the System.Runtime.InteropServices.ClassInterfaceType Enumeration?
The System.Runtime.InteropServices.ClassInterfaceType Enumeration in .NET has an AutoDispatch value and an AutoDual value, but no AutoUnknown value. Why doesn't it, and has anyone already come up with a fairly automated way of accomplishing it, so…

bob
- 452
- 4
- 11
0
votes
2 answers
Exposing nested arrays to COM from .NET
I have a method in .NET (C#) which returns string[][]. When using RegAsm or TlbExp (from the .NET 2.0 SDK) to create a COM type library for the containing assembly, I get the following warning:
WARNING: There is no marshaling support for nested…

bzlm
- 9,626
- 6
- 65
- 92
0
votes
0 answers
Registration COM-Interop (.tlb) including Assembly (.dll) references
I'm trying to register my Classlib.dll for using COM interop with the regasm.exe tool.
In general this is not a problem.
like this: > regasm.exe MyAsm.dll /tlb: MyAsm.tlb
But now I use a .dll reference in my classlib project. The general…
0
votes
0 answers
visual studio 2017 tab MIDL is missing in VC++ DLL project
Any idea to generate TLB file for Visual C++ DLL porject please. My project does not have tab MIDL when loading Project Property.

beewest
- 4,486
- 7
- 36
- 63