Why do I receive a "file not found" error when MATLAB Excel Builder 1.1 (R13) tries (or I try manually) to register my Excel Builder dll?

3 views (last 30 days)
When I execute the following command from the command prompt:
mwregsvr mydll.dll
or
regsvr32 mydll.dll
I receive the following error:
file not found

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 19 Jul 2010
When regsvr32 (or mwregsvr) is run on a .dll file, it fully loads the library. This means that all other shared libraries that it calls must also be loaded. If regsvr32 does not find one of the libraries that the .dll file depends on, it will return with a "file not found" error. The .dll that is created by Excel Builder relies on files in the following directories:
$MATLABROOT\bin\win32 (where $MATLABROOT is your root MATLAB directory)
and your Windows system folder, usually called System32. This system folder should contain files such as "kernel32.dll", and "oleaut32.dll".
In order for regsvr32 to be able to find any files in these two directories, the directories must be listed on your system path. The instructions in the Related Solution linked below show how to add directories to your system path.
Make sure these two directories are the first two directories on your path. If they are not, you may run into library version problems.
The instructions above should allow you to run your Excel Builder .dll file on your development machine.
You can also find all the files that the .dll file depends on using the "Dependency Walker". The instructions in the Related Solution linked below show how to profile a .dll file with Dependency Walker.

More Answers (0)

MathWorks Support

Categories

Find more on Data Export to MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!