Questions tagged [typelib]

A type library is a standard format for interface descriptions. It can store interface or class meta-data and make them accessible for different clients. Type libraries enable clients to call interfaces without knowing their actual implementation.

Type libraries are widely used in environments to describe interfaces, classes or type definitions. They are created to export interface contracts to clients. This way, they define a standardized interface between servers and clients.

In COM, type libraries can be described using (interface definition language).

Further reading:

  1. COM on Wikipedia
  2. COM, DCOM and Type Libraries on MSDN
287 questions
87
votes
5 answers

Generate manifest files for registration-free COM

I have some applications (some native, some .NET) which use manifest files so that they can be deployed in complete isolation, without requiring any global COM registration. For example, the dependency on the dbgrid32.ocx com server is declared as…
Wim Coenen
  • 63,995
  • 12
  • 149
  • 237
38
votes
4 answers

How to register a legacy typelib (.tlb) on Windows 7?

I have a new PC running Windows 7 and Visual Studio 2010, and need to register a legacy typelib (.tlb) to interface with an existing legacy application. However, regtlib.exe does not seem to be part of Windows 7 (I don't think it was part of Vista…
Marc Friedman
  • 863
  • 1
  • 7
  • 12
37
votes
4 answers

Replicating Visual Studio COM registration with a WiX Installer

Once upon a time, a young, naive engineer thought it would be a good idea to separate out some of the functionality for his app into a COM component, written in C#. Visual studio had all the tools to do that, right? .NET was practically made for…
Robert P
  • 15,185
  • 8
  • 66
  • 110
25
votes
3 answers

Typelib Generation and Installation with WiX

After asking about what Visual Studio does to register a COM Library, it became clear that VS did two things for COM registration: Registered the COM Library Creates and registers a Type Library Visual Studio seems to do this registration using…
Robert P
  • 15,185
  • 8
  • 66
  • 110
18
votes
4 answers

Visual Studio 2010 - TYPE_E_REGISTRYACCESS

I'm building my VS2010 solution and in output window there is an error just for one project. In error tab: Error 161 Cannot register type library "D:\Sites\Website\MyPortal.Website.Controllers\bin\Debug\MyPortal.Website.Controllers.tlb". Error…
Junior Mayhé
  • 15,301
  • 26
  • 105
  • 157
14
votes
5 answers

How to generate type library from unmanaged COM dll

I have to use third party, unmanaged COM dll into my .NET application. I need to modify this assembly to produce a custom RCW. In order to Edit Interop Assembly I need the type library of the particular assembly. Can any one explain me that how to…
RoboAlex
  • 4,518
  • 5
  • 27
  • 36
11
votes
3 answers

warning MSB3391: does not contain any types that can be unregistered for COM Interop

I've made a simple C# DLL (that's part of a much larger project) using VS2005. I need to use the DLL in Excel via VBA code so I am using COM Interop on the assembly. I am trying to make the build process automatically generate the necessary TLB…
Rocky
11
votes
2 answers

Import TLB into C#

i want to import a Type Library (tlb) into C#. How do i import a .tlb into a .cs code file? Borland Delphi can import a .tlb into .pas by using the command line tool tlibimp.exe: C:\Develop>tlibimp.exe SopQuotingEngineActiveX.tlb Borland TLIBIMP…
Ian Boyd
  • 220,884
  • 228
  • 805
  • 1,125
9
votes
1 answer

How do I convert a .tlb file to headers and implementation files?

I'm trying to convert mscorlib.tlb. It normally used in C++ like this: #import "mscorlib.tlb" raw_interfaces_only \ high_property_prefixes("_get","_put","_putref") \ rename("ReportEvent",…
jcao219
  • 2,510
  • 3
  • 19
  • 22
9
votes
3 answers

Delphi 2009 COM/ActiveX Type Library support stability

Referring to TLB and maintenance issues ... My question to people (often) using the new COM/ActiveX type library support in Delphi 2009: How stable is the implementation? Especially, I'm interested in: adding/deleting classes, changing GUIDs,…
ulrichb
  • 18,344
  • 6
  • 67
  • 87
9
votes
3 answers

How to get IDL from a .NET assembly (or how to to convert TLB to IDL) in a command line?

We have a .NET assembly (Aspose.Words actually) and we want clients to use it from COM clients without much hassle. So we ship a .TLB with the assembly so the client can use it from languages such as C++ or Delphi and don't bother extracting .TLB…
romeok
  • 571
  • 1
  • 7
  • 12
9
votes
5 answers

Delphi and COM: TLB and maintenance issues

In the company that i work, we develop all the GUI in C#, but the application kernel is mainly developed in Delphi 5 (for historical reasons), with a lot of components made in COM+. Related to this very specific sort of application a I two…
Gustavo
  • 911
  • 1
  • 13
  • 24
8
votes
1 answer

Using a .Net DLL in Microsoft Access VBA

Ok so I have an assembly, written in C#, using Visual Studio 2010. This Assembly contains one class, which contains one method which returns the word Result, the code is below: using System.Runtime.InteropServices; namespace TestDLL { public…
JMK
  • 24,985
  • 50
  • 147
  • 268
8
votes
1 answer

How to autogenerate *_TLB.pas in Delphi XE?

We have been updated our project to Delphi XE. There's .ridl files instead .tlb. But what's about *_TLB.pas files? How to migrate changes in .ridl file to *_TLB.pas file? Delphi XE doesn't modify this file at all.
Dmitry
  • 13,126
  • 20
  • 95
  • 177
8
votes
1 answer

How do I create a module defined function in a COM Type Library

The VBE7.dll type library used by VBA, has the following MIDL for the Conversion module: [ dllname("VBE7.DLL"), uuid(36785f40-2bcc-1069-82d6-00dd010edfaa), helpcontext(0x000f6ebe) ] module Conversion { [helpcontext(0x000f6ea2)] BSTR…
ThunderFrame
  • 8,851
  • 2
  • 24
  • 53
1
2 3
19 20