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.
typelib
301
questions
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.
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 ...
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")]...
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 ...
-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 ...
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&...
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 ...
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 (...
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 ...
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(&...
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" ...
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.
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)]...
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 ...
-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" ...