From: Adam on
Hi,

I've been trying to build the mymagic example as a first step to building an Excel plugin. It builds fine, and there are no problems registering the DLL with mwregsvr. But when I try and run the macro in Excel, I get the error message:

"A dynamic link library (DLL) initialization routine failed."

I'm using Matlab 2009b, and Excel 2007.

The problem seems identical to the one described here:

http://www.mathworks.com/support/solutions/en/data/1-13WHOT/index.html?product=EB&solution=1-13WHOT

But that specific problem has been fixed in the version of MatLab I am using.

The only other thing I could think of was my DLLs not being registered, but I checked that and they all have been.

Does anyone know what else may be causing this message?

Many thanks,

Adam