MATLAB: How to embed a manifest file into a DLL or EXE created using the MATLAB Compiler 4.9 (R2008b)

manifestMATLAB Compilermt

I am using a third party application to call a C shared library (DLL) created using the MATLAB Compiler with Microsoft Visual Studio 9 (2008). My application requires the manifest for the DLL to be embedded within the DLL.

Best Answer

If you are using the Microsoft Visual Studio compiler with the MATLAB Compiler, a utility known as MT.EXE is available with Visual Studio that enables you to embed a manifest into a DLL (or EXE) created using the Visual Studio C/C++ compiler.
Additional details about embedding manifests into libraries, and the usage of MT.EXE may be found at the Microsoft Developer Network, at the following location:
How to: Embed a Manifest Inside a C/C++ Application
<http://msdn.microsoft.com/en-us/library/ms235591.aspx>
To use the Microsoft Visual Studio Compiler with the MATLAB Compiler, refer to the "Supported and Compatible Compilers" page to ensure that you procure a supported version of a Microsoft compiler:
<http://www.mathworks.com/support/compilers/current_release/index.html>