tlb

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 ...

activex in winform

I need to put some activeX in my .Net WinForm. The provider had sent me a .tlb and the com .dll. Is this enough? How do I put it on winform? ...

Using COM dll in my C++ program. problem :(

Hi all. I wish to use a COM dll in my C++ library. The way I figured going about it, is to #import the dll's .tlb file, which I did : #import "mycom.tlb" no_namespace The problem is , I don't quite know where to place this declaration. should it be inside the H file or the CPP file? or maybe the stdafx.h file? I tried placing it in ...

How do I create interface methods using .tlb types in VS C++?

Background: The .TLB file contains interfaces written in language 'X'. I don't have .h, .idl, .tlh, or any other header files - just the .TLB file. Language 'X' does not export compatible .h, .idl, etc. I use the VS wizard to add an ATL simple object to my ATL project. I want to add a method to the interface of my simple ATL object ...

Import TLB problem in C++

I've created a managed COM object with related TLB file in VS2005. If I import the dll in a C++ source file, I can use the interface. However, I want to import the TLB in the header file, because I want to make a global object of an interface object. Now I have the following code (at the very top of the file) in the cpp file: #include ...

Can a memory page be moved by modifying the page table?

Is it possible (on any reasonable OS, preferably Linux) to swap the contents of two memory pages by only modifying the page table and not actually moving any data? The motivation is a dense matrix transpose. If the data were blocked by page size it would be possible to transpose the data within a page (fits in cache) then swap pages to ...

operating systems - TLBs

I'm trying to get my head round this (okay, tbh cramming a night before the exams :) but i can't figure out (nor find a good high level overview on the net) of this: 'page table entries can be mapped to more than one TLB entry.. if for example every page table entry is mappped to two TLB entries, this is know as 2-way set associative TL...

How to read TLB(Type Libraries)of unmanaged code from C# ?

Hello, I need to parse unmanaged code's TLB (Of unmanaged COM server) in C#.NET. What are the way arounds to do this.? Regards Usman ...

How to access COM vtable and acess its entries from TLB(Type Library) in C#?

Hello, I need to access COM vtable which have entries of those functions which are exposed to outside world under some specific interface in C#. I've accessed and iterate over the types enclosed in the TLB with LoadTypeLib and playing with ITypeInfo. Now only thing I need to access one by one those methods inside vtable of COM Interfac...

Why Exception occured getting address of COM function ?

I am getting address of COM function by loading type library (TLB) and iterating over types using ITypeLib and ITypeInfo. After calling AddressOfMember function of ITypeInfo I am facing the following exception: System.Runtime.InteropServices.COMException (0x800288BD): Wrong module kind for the operation. (Exception from HRESULT: 0x80...

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

Hey, 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 themselves. We also ship an .IDL with the assembly so the clients can look into it i...

In what circumstances can large pages produce a speedup ?

Modern x86 CPUs have the ability to support larger page sizes than the legacy 4K (ie 2MB or 4MB), and there are OS facilities (Linux, Windows) to access this functionality. The Microsoft link above states large pages "increase the efficiency of the translation buffer, which can increase performance for frequently accessed memory". Whic...

A .tlb file must be registered?

Hello, I have a com interop c++ dll that is loaded in c++ throught the .tlb file generated in c#. When I run in my computer it works fine but when I run in a computer that just got formated it gives: WindowsError: exception code 0xe0434f4d Do I have to do something for the .tlb file or its dll to be registered in the system? Somethin...

Generation of .tlb Files in Windows 7 Pro 32-bit

I have a C++ DLL that imports a .tlb file generated in a C# project. The C++ DLL is a wrapper DLL containing functions that call the corresponding C# functions. When I call the C++ functions on the computer that I built the projects, all works well. But when I copy the DLL's and generated tlb's to another computer with the same exact ve...

fatal error C1084: Cannot read type library file: 'Smegui.tlb': Error loading type library/DLL.

Hi, I am trying to build an old version of an application which consists of VC++ projects that were written in Visual Studio 2003. My OS is Windows 7 Enterprise (64-bit). When I try and build the solution I get the following errors: error C4772: #import referenced a type from a missing type library; '__missing_type__' used as a pla...

regasm and tlb (registering a .NET library for COM interop)

I have .NET assembly with one public class and several private classes. I am trying to register it for COM interop so that I can call it from VBA, using the following command: regasm /tlb foo.dll /codebase Subsequently, when I open up the .tlb file in Visual Studio's "object browser", I see that the library does not expose any types. ...

Using records as property types in Delphi COM Wizard

Hi I am trying to design a COM library that uses a property to return a record. The Delphi COM Wizard allows me to create the property, but when it is compiled, I get [GENTLB Error] Project1.ridl(1): Error saving C:\Users\mark\Documents\RAD Studio\Projects\Test\Project1.tlb: Inconsistent property functions The RIDL file that is gene...

MMU and TLB miss

Suppose the following. I have a system with virtual memory with one lever paging, I have a MMU and the TLB thing is controled by software. Ok.. so imagine I'm a process, and I want to read a word in RAM of virtual address vaddr. So, the CPU gives the MMU vaddr, the MMU checks in the TLB if there's an entry with the (suppose) 5 most sig...

Importing interfaces in IDL from an external type library

I have two type libraries with COM interfaces that I wrote using ATL and Microsoft's IDL. I would like an interface in one library to inherit from an interface in the other. Essentially, I would like to do the same thing that Steven described at How do I create interface methods using .tlb types in VS C++?. The only person who answered ...

Building an COM-interop enabled project without registering it during build

Hi, In Visual Studio 2010, I'm trying to build an COM-interop enabled C# project without registering it during build, but I DO require the assembly's typelibrary (.tlb) file, so I can import it from another C++ project in the solution. I haven't found a way of doing this - there once upon a time was a tlbexp.exe tool, but it was depreca...