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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:34:44+00:00 2026-05-18T10:34:44+00:00

I define my interfaces in an A.idl file, which I compile to A.tlb In

  • 0

I define my interfaces in an A.idl file, which I compile to A.tlb

In a VS2005 ATL project “B” I use importlib(A.tlb) in B.idl and #import “A.tlb” in stdafx.h and implement an interface IA from A.tlb in an ATL COM class. The project outputs a B.dll and a B.tlb

I add the B.tlb to refererences of a C# application and within the code I instantiate the COM object.

The instantiation works without problems if I use either

Type.GetTypeFromCLSID(); Activator.CreateInstance(...);

or

[DllImport("ole32.dll", ...)] CoCreateInstance(...)

Both work fine, the object instantiates and I can cast it to IA interface defined in A.tlb (actually a RCW generated from the tlb) and invoke its methods. Still no problems.

Then I use OLEView to enable the COM object activation using the default DllHost.exe surrogate.

The instantiation of the COM object within the surrogate (parameter CLSCTX_LOCAL_SERVER in CoCreateInstance) is still without problems, but when I try to cast the object to the IA interface defined in A.tlb I get E_NOINTERFACE and a message saying QueryInterface failed because “No such interface supported”.

Please help. What could be wrong? If you need any additional info, I’ll try to provide as much as possible.

  • 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-18T10:34:45+00:00Added an answer on May 18, 2026 at 10:34 am

    You need to build and register the proxy/stub DLL. Required to marshal the interfaces across process boundaries. I can’t find a great MSDN page for it, but it is mentioned here.

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

Sidebar

Related Questions

We have an idl file with multiple interfaces defined, two of which have someting
I want to implement an application which could use users implemented classes. Each class
I have Environment.h file: #include <windows.h> #include interfaces.h #ifndef ENVIRONMENT_H #define ENVIRONMENT_H class Environment
In java, we can define different interfaces and then later we can implement multiple
I have a defined idl file, which looks like this: module Banking { typedef
I have to use idlj for my school project but in my idl files
I have a confusion in why we use abstract classes or interfaces to implement
I have an idea to use interfaces in Go to define RPC style interfaces.
I have an IDL file that defines a few interfaces followed by a coclass.
In Java, I'd like to be able to define marker interfaces, that forced implementations

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.