Skip to main content

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.

0 votes
0 answers
26 views

How to tell whether a COM dll contains type library or not?

I failed to register a COM dll(regsvr32 some.dll) possibly because the dll does not contain the type lib for the COM server. I would like to know how to check if the dll contains a type lib or not.
William's user avatar
  • 948
1 vote
2 answers
67 views

ITypeLib2.GetLibStatistics() always throws AccessViolationException in C#

I'm trying to call the GetLibStatistics method of the ITypeLib2 interface. I've tried several variations and techniques, but they all throw System.AccessViolationException: Attempted to read or write ...
skataben's user avatar
  • 2,102
2 votes
1 answer
439 views

Registration and retrieving COM object from .Net 6 DLL (Typelib export: Type library is not registered. (Exception from HRESULT: 0x80131165))

I register COM object from .Net 6 DLL using following script .\regsvr32.exe .\MyLibrary.comhost.dll In addition, in the DLL, it registers itself in ROT via [DllImport("oleaut32.dll")]...
Serhii's user avatar
  • 23
0 votes
0 answers
192 views

Unable to register a 3rd party type library for use in Delphi

OS: Windows 11 64bit The software development company I work for has a customer that requires integration to the Sage 50 account DB. After much back and forth communications with Sage UK, we have ...
Christian VG's user avatar
-2 votes
1 answer
154 views

ITypeInfo and fast searching for function signature

Maybe I'm blind, but how did Microsoft think of finding a function signature quickly using the ITypeInfo interface? How do others do it better than me? In order to find a function, you need a member ...
René Rössler's user avatar
0 votes
0 answers
29 views

Move Typelib into a C# custom action code

I have a WiX project with below piece of code to register a library: <Fragment> <ComponentGroup Id="COMObjectComponent" Directory="APPLICATIONFOLDER&...
Willy's user avatar
  • 10.4k
0 votes
0 answers
63 views

How to make a typedef struct in ODL OLE compatible?

I'd like to define a struct in typelib definition language to create a typelib. So far I have a struct and two interfaces: typedef [uuid(FD68C55A-A933-4c4a-BD26-A1967ABA6F8F), version(1.0)] struct ...
René Rössler's user avatar
0 votes
0 answers
130 views

How does a COM client parses Type Library from a EXE COM server?

Let's say we have a COM server EXE and COM client EXE running on the same machine. COM server exposes IDispatch interface and carries a Type Library (.TLB file) into it's resource section. COM client (...
pralaynath_gainda_swamy's user avatar
1 vote
2 answers
78 views

Visual Studio 2022 generates invalid syntax from typelib

I used the Project > Add New Item tool in Visual Studio 2022 and selected MFC Class From TypeLib. In the dialog which appeared, I selected "File" from the Implement interface from ...
Bob Kline's user avatar
  • 324
0 votes
2 answers
268 views

Windows Script Host cannot reference type library with version number in hexadecimal notation

I have .NET framework assembly which is exposed to COM. Recently, since the assembly minor version number reach 10, it stopped being usable from Windows Script Host (WSH). [assembly: AssemblyVersion(&...
Martin Prikryl's user avatar
0 votes
1 answer
253 views

How do I create WIALib_TLB.dcu in Delphi? [duplicate]

I'm trying to compile the code snippet at https://gist.github.com/stijnsanders/1724324 using Delphi 6. Delphi complains that WIALib_TLB.dcu can't be found. The "Import Type Library" ...
Witness Protection ID 44583292's user avatar
0 votes
1 answer
141 views

How to digitally sign .tlb(type library) files?

I want to digitally sign .tlb file. Can I know how to sign the .tlb files. Thanks in Advance.
Kalyani Reddy's user avatar
0 votes
0 answers
260 views

Replacement for TypeLibFunc in .NET Standard

I'm trying to uplift some older .NET Framework code to .NET Standard 2.0. [TypeLibFunc(TypeLibFuncFlags.FRestricted)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]...
Joseph's user avatar
  • 943
1 vote
1 answer
434 views

WIX Candle.exe CNDL0047 : The TypeLib element is non-advertised and therefore requires a parent File element

I have run into issues with Wix when attempting to run Candle.exe for a few legacy 32-bit DLLs (ssubtmr.dll and cnewmenu.dll). The heat commands look something like this (I don't think this is the ...
jimbo's user avatar
  • 601
-2 votes
1 answer
889 views

VBA EXCEL VBA How to enable (check) specific Type Library in Tools/References programmatically?

That's basically my question. Doing googling didn't return anything that I am looking for, but basically I am running SOLIDWORKS from Excel and for that I need "sldworks 2016 Type Library" ...
Eduards's user avatar
  • 68

15 30 50 per page
1
2 3 4 5
21