Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7026067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:04:05+00:00 2026-05-28T00:04:05+00:00

I am working on a project for developing a proxy COM component for the

  • 0

I am working on a project for developing a proxy COM component for the given component in visual C++.
If “Comp” is the original component and Proxy_Comp is the proxy component, then Proxy_Comp should be capable of having the same Interfaces as of the original component.

I think this should be done by importing only the “Comp.dll”.
One of my friends has done this successfully before. But I cannot do it. Could anyone please help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:04:05+00:00Added an answer on May 28, 2026 at 12:04 am

    I’ll assume you are talking about the importlib directive in the IDL file. It requires a type library, the filename extension is .tlb. It is a binary file produced by running midl.exe on an .idl file that contains the .idl definitions in a compact form.

    A DLL is not a type library. It is a common convention however in COM Automation to embed the type library for the COM server as a resource inside the DLL. Quite handy to keep the server code and its interface definitions together. You can see this easily from Visual Studio, use File + Open + File and select the DLL. You could pick c:\windows\system32\shell32.dll as an example.

    The resource type name is invariably “TYPELIB”, open the node to see the resource ID, invariably “1”. You can double click it to look at the content, not very interesting since it is only a hex dump. You’ll recognize the strings though, the names of the interfaces, coclasses and their members.

    Close that window and right-click the “1”, note the Export context menu option. That lets you write a file to disk, name it something.tlb. You’ll now have an exact copy of the .tlb that the importlib() directive likes.

    That .tlb can be decompiled in turn to re-generated the original .idl file. Start the Visual Studio prompt. Run oleview.exe, File + Open Typelib and select the .tlb. Set the focus to the right pane, type Ctrl+A, Ctrl+C and paste that into a text editor. Now you got the original .idl back, you could just use the import directive.

    This only has 100% fidelity if the original .idl file was COM Automation clean and didn’t contain any cpp_quote.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am working on a project, which i am developing with Python and PyQT4.
I've just started working on an existing CakePHP project. I will be developing a
when working with Qt Creator and developing my project, I've added to a resource
I'm working on a project which requires us developing our own intermediate SMTP relay
I have a potential project where I would be working on developing the Data
For this project I'm working on, I'm developing live on the server (not my
I'm currently working on some school project; we are developing a simple RPG, but
I am working on a project that is developing a website application for 3
I was working on a project which includes developing an application using java sockets.
I'm working on a project where I'm developing a pseudo Unified Communications middle tier

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.