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

  • Home
  • SEARCH
  • 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 120151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:45:57+00:00 2026-05-11T03:45:57+00:00

I have some applications (some native, some .NET) which use manifest files so that

  • 0

I have some applications (some native, some .NET) which use manifest files so that they can be deployed in complete isolation, without requiring any global COM registration. For example, the dependency on the dbgrid32.ocx com server is declared as follows in the myapp.exe.manifest file which sits in the same folder as myapp.exe:

<?xml version='1.0' encoding='utf-8' standalone='yes'?> <assembly manifestVersion='1.0' xmlns='urn:schemas-microsoft-com:asm.v1'>   <assemblyIdentity type='win32' name='myapp.exe' version='1.2.3.4' />   <dependency>     <dependentAssembly>       <assemblyIdentity type='win32' name='dbgrid32.ocx' version='5.1.81.4' />     </dependentAssembly>   </dependency> </assembly> 

The dbgrid32.ocx is deployed to the same folder, along with it’s own dbgrid32.ocx.manifest file:

<?xml version='1.0' encoding='utf-8' standalone='yes'?> <assembly manifestVersion='1.0' xmlns='urn:schemas-microsoft-com:asm.v1'>   <assemblyIdentity type='win32' name='dbgrid32.ocx' version='5.1.81.4' />   <file name='dbgrid32.ocx'>      <typelib         tlbid='{00028C01-0000-0000-0000-000000000046}'         version='1.0'         helpdir=''/>     <comClass progid='MSDBGrid.DBGrid'        clsid='{00028C00-0000-0000-0000-000000000046}'        description='DBGrid  Control' />   </file> </assembly> 

This all works fine but maintaining these manifest files manually is a bit of a pain. Is there a way to generate these files automatically? Ideally I would just like to declare the application’s dependency on a list of COM servers (both native and .NET) and then let the rest be generated automatically. Is it 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. 2026-05-11T03:45:57+00:00Added an answer on May 11, 2026 at 3:45 am

    It looks like the perfect solution does not yet exist. To summarize some research:

    Make My Manifest (link)

    This tool scans a VB6 project to look for COM dependencies, but it also supports manual declaration of late-bound COM dependencies (i.e. those used via CreateObject).

    Interestingly enough, this tool puts all information about the dependencies inside the application manifest. The application exe and its dependencies are described as a single assembly consisting of multiple files. I hadn’t realized before that this was possible.

    Looks like a very good tool but as of version 0.6.6 it has the following limitations:

    • only for VB6 applications, starts from VB6 project file. Shame, because a lot of what it does really has nothing to do with VB6.
    • wizard style application, not suitable to integrate in a build process. This is not a huge problem if your dependencies don’t change a lot.
    • freeware without source, risky to rely on it because it could become abandonware at any moment.

    I did not test whether it supports .NET com libraries.

    regsvr42 (codeproject link)

    This command line tool generates manifest files for native COM libraries. It invokes DllRegisterServer and then spies on the self-registration as it adds information into the registry. It can also generate a client manifest for applications.

    This utility does not support .NET COM libraries, since these don’t expose a DllRegisterServer routine.

    The utility is written in C++. The source code is available.

    mt.exe

    Part of the windows SDK (can be downloaded from MSDN), which you already have if you have visual studio installed. It is documented here. You can generate manifest files for native COM libraries with it like this:

    mt.exe -tlb:mycomlib.ocx -dll:mycomlib.ocx -out:mycomlib.ocx.manifest 

    You can generate manifest files for .NET COM libraries with it like this:

    mt.exe -managedassemblyname:netlib.dll -nodependency -out:netlib.dll.manifest 

    However, there are some problems with this tool:

    • The first snippet will not generate progid attributes, breaking clients which use CreateObject with progids.
    • The second snippet will generate <runtime> and <mvid> elements which need to be stripped out before the manifests actually work.
    • Generation of client manifests for applications is not supported.

    Maybe future SDK releases will improve this tool, I tested the one in the Windows SDK 6.0a (vista).

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

Sidebar

Ask A Question

Stats

  • Questions 100k
  • Answers 101k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer These algoritms are for translating the program memory addresses onto… May 11, 2026 at 8:00 pm
  • Editorial Team
    Editorial Team added an answer You should look at Full Text Search. It's specificially designed… May 11, 2026 at 8:00 pm
  • Editorial Team
    Editorial Team added an answer You could use the method described here as follows:- Create… May 11, 2026 at 8:00 pm

Related Questions

I have an ASP.NET 2.0 application (installed on IIS 6.0 from an MSI) which
I have what I believe is a killer idea for an application. By definition,
We have a COM object implemented with C++/ATL that includes a method which will
I am using some native methods to bind to running objects in a COM-based

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.