I have MATLAB Builder EX 1.2.10 (R2008a) installed on my computer. I was able to use it until I installed MATLAB Builder EX 1.2.12 (R2009a) on my computer. Now, I can only compile and create working DLLs from the newest version.
If I use 'deploytool' to create a DLL in MATLAB Builder EX 1.2.10 (R2008a), there seem to be no issues when I compile. However, when I try to run this DLL in Excel, I receive the following error message:
VBAProject Message: Automation error A dynamic link library (DLL) initialization routine failed.
I have registered my project dll as well as mwcommgr.dll and mwcomutil.dll from MATLAB 7.6 (R2008a) using regsvr32 at the DOS command prompt.
Best Answer