There are many ways to generate a manifest file. They can be used to define your project’s resource dependencies (and much more) and for this example we have used mt.exe which comes as a part of the windows SDK installation. This avoids the step to register COM object on a machine mainly for portability and reasons related to restricted registry access. A manifest file can be added to your project (if supported) so that the resources are identified when the executable is run.
You may wish to generate and edit your manifest file according to your requirements but for this example we have generated manifest files for 32 and 64 bit executables requiring DicomObjects COM V8. You can also embed your manifest in your executable at compile time.
After downloading the manifest files from the links below, you’d notice 2 important things in the definition, which are your executable name and its dependency name (DicomObjects in this case).
Using 32 bit DicomObjects:
<assemblyIdentity version="126.96.36.199" name="MyExe"/> <file name="DicomObjects.8.32.ocx" hashalg="SHA1">
Using 64 bit DicomObjects:
<assemblyIdentity version="188.8.131.52" name="MyExe"/> <file name="DicomObjects.8.64.ocx" hashalg="SHA1">
You can download our sample Manifest files from here Sample_Manifests