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 1086919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:52:21+00:00 2026-05-16T22:52:21+00:00

I am maintaining a VS2010 project which has a number of cross-referenced COM libraries.

  • 0

I am maintaining a VS2010 project which has a number of cross-referenced COM libraries. I am trying to configure the project in such a way that it is buildable from a random workstation which has VS2010 installed. The workstation could be both 32 and 64 bit, so if I configure project to “register output”, the build will fail to build on 32-bit machine, since 64-bit DLL will not be possible to load to call DllRegisterServer.

Here is an example: Typelib from project B references typelib from project A. Project C will reference project B via following statement:

#import "B.tlb"

Since library B references A, when B.tlb is being imported, the compiler tries to load types from A. So, if A is not registered, the compile will fail with:

error C4772: #import referenced a type from a missing type library ...

I tried to open B.tlb using the OleView application, and it’s sure as hell only showing right file name for library A reference if it is registered using regsvr32.

So, my question here is: is there any alternative way for library references to resolve themselves properly, without having to register TLBs, just by putting all the files in the same directory somehow, or attaching some sort of manifest? For example, rename the TLB for a library as .tlb or something of that sort.

  • 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-16T22:52:22+00:00Added an answer on May 16, 2026 at 10:52 pm

    Try import the referenced A.tlb first, or list it in the import of B.tlb using the include() option.

    Only #import the parts of the interface you plan to use if you can avoid bringing in other references unnecessarily.

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

Sidebar

Related Questions

m maintaining a project, that has to be compatible through PHP 4.X to 5.2.
I'm maintaining a website that has full screen background photos, and a text panel
I am working on maintaining a ASP.NET MVC application that has the following coding
When maintaining a COM interface should an empty BSTR be treated the same way
I'm maintaining a project that was not initially using a version control system. Instead,
I am maintaining a web application that uses java.protocol.handler. I initialize it with a
I'm maintaining a script that can get its input from various sources, and works
I'm maintaining a multi-project solution in ASP.NET + C#. We've decided to upgrade to
I'm currently maintaining a project I've inherited from some one else and the SVN
I am maintaining some Java code that I am currently converting to C#. The

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.