typelibrary

Why is the type library in my dll corrupt (registering returns TYPE_E_CANTLOADLIBRARY)?

We have a mature c++ COM codebase that has been building, registering and running for many years. This includes numerous developer machines and autobuild machines. The codebase builds several dlls and exes. Some of these are COM servers. The typical setup is Xp64 using both visual studio 2005 and 2008. We have both 32 bit and 64bit ...

Why does MSHTML_TLB.pas produce warnings?

I am trying to get rid of lots of warnings in a project after converting it from BDS 2006 to Delphi 2009. The project needs a type library named MSHTML_TLB. The source file mshtml_tlb.pas is an incredibly large file (about 16MB and >440.000 lines of code) which is generated when the Type Library is imported into Delphi 2009. This f...

Ruby and WIN32OLE: Cannot call WIN32OLE_TYPE methods (Type Libraries)

Okay, so I'm doing some good OLE' (sorry) automation with ruby and I ran into a weird problem. I'm trying to extract some data from a Type Library. This works in VB: Dim c As New TControlsLib.LangCombo Dim l As TControlsLib.Language Dim converter As New TControlsLib.LcidConverter c.AddAllSystemLanguages mtAllKnownLanguages, True For Eac...

Why exception occured at LoadTypeLibEx System.ArgumentException: Value does not fall within the expected range?

Hello, I am loading type library in C++/CLI. In C# its loading successfully but it's giving again and again following exception in managed C++/CLI. exception occured at LoadTypeLibEx System.ArgumentException: Value does not fall within the expected range at LoadTypeLib(String strTypeLibName, ITypeLi b typeLib) Here's a PInvoke Signat...

Getting Types in Win32 Dll

Hello, I want to know the types and details in a plain Win32DLL just like we can get in case of COM.In COM every thing embed inside idl and results in TLB, here we get every thing , MSFT exposes APIS by which we can extract types. In case of Win32 I strongly needed types defined in it and all details of that type(e.g what are members i...

how to know about the type of com server using type library?

Hello, Is there any attribute or property or method available in type library which tells that whether given type library is in proc COM server or Out of proc COM server. Regards Usman ...

Is it possible to have Delphi auto-generate event-support code for an imported OLE/COM type library?

I'm trying to generate _TLB import units for Outlook 2003, 2007 and 2010 (and also other OLE servers) analogous to the ones bundled with Delphi for Outlook 2000 and 2002. However, I couldn't get the type library importer to also generate the code for capturing events from the OLE servers that is found in the bundled units. The option to ...